This project offers a method to expose applications registered within Spring Boot Admin for Prometheus http service discovery. The service discovery f

alexey-lapin/spring-boot-admin-prometheus-service-discovery

submited by
Style Pass
2023-03-26 17:00:04

This project offers a method to expose applications registered within Spring Boot Admin for Prometheus http service discovery.

The service discovery feature can be activated by applying @EnableAdminServerServiceDiscovery annotation. One option is to integrate the library with the Spring Boot Admin server within the same application. This way the SBA's instance registry based provider is available. Another option is to utilize this library separately, then only REST based provider is configured.

It is also necessary to have spring web stack on classpath e.g. org.springframework.boot:spring-boot-starter-webflux or org.springframework.boot:spring-boot-starter-web

In prometheus config it is possible to use specific server name or omit it to get merged list of instances from all the configured providers:

Leave a Comment