0

I use micrometer metrics for prometheus and according to docs: http://micrometer.io/docs/prometheus#_configuring

A Spring Boot Actuator endpoint will be wired to /prometheus that presents a Prometheus scrape with the appropriate format.

How to wire it to another endpoint like /metrics?

Jonathan Schneider
  • 26,852
  • 13
  • 75
  • 99
Nikita
  • 4,435
  • 3
  • 24
  • 44

1 Answers1

2

You can change the endpoint using the normal Spring Boot Actuator mechanism like so:

endpoints:
  prometheus:
    id: micrometheus

Here is a reference to the Micrometer documentation of this.

Jonathan Schneider
  • 26,852
  • 13
  • 75
  • 99