I am currently trying to migrate our prometheus lib to spring boot 2.0.3.RELEASE.
We use a custom path for prometheus and so far we use a work around to ensure this. As there is the possibility for a custom path for the info- and health-endpoint, uses management.endpoint.<health/info>.path
.
I tried to specify management.endpoint.prometheus.path
, but it was still just accessible under /actuator/prometheus
.
How can I use a custom path or prometheus?
We enable prometheus using the following libs (snippet of our build.gradle)
compile "org.springframework.boot:spring-boot-starter-actuator:2.0.3.RELEASE"
compile "io.micrometer:micrometer-core:2.0.5"
compile "io.micrometer:micrometer-registry-prometheus:2.0.5"
we also use the import of the class PrometheusMetricsExportAutoConfiguration
Your help is highly appreciated :)