我对普罗米修斯使用千分尺指标,根据文档: 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到千分尺文档。
关于java - 使用 micrometer.io 更改 prometheus 端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45418398/