使用 micrometer.io 更改普罗米修斯端点
Change prometheus endpoint using micrometer.io
我使用 prometheus 的千分尺指标并根据文档:
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.
如何将它连接到另一个端点,例如 /metrics
?
您可以使用正常的 Spring Boot Actuator 机制更改端点,如下所示:
endpoints:
prometheus:
id: micrometheus
这里是 reference Micrometer 文档。
我使用 prometheus 的千分尺指标并根据文档: 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.
如何将它连接到另一个端点,例如 /metrics
?
您可以使用正常的 Spring Boot Actuator 机制更改端点,如下所示:
endpoints:
prometheus:
id: micrometheus
这里是 reference Micrometer 文档。