【发布时间】:2018-07-19 21:44:58
【问题描述】:
不能在 spring boot 2(版本 2.0.0.M7)项目中包含 Prometheus 指标。
根据micrometer docs 添加 spring-boot-starter-actuator 依赖并在 application.yaml 添加 management.endpoints.web.expose: prometheus 但在调用 /actuator/prometheus 获取{
"timestamp": 1518159066052,
"path": "/actuator/prometheus",
"message": "Response status 404 with reason \"No matching handler\"",
"status": 404,
"error": "Not Found"
}
请告诉我为什么我没有获得普罗米修斯指标?
【问题讨论】:
标签: spring-boot metrics prometheus