【发布时间】:2021-12-01 19:33:01
【问题描述】:
我是 prometheus + spring 的新手。我的应用程序在 play + spring 上运行。为了使用千分尺进行监控,我添加了:
"org.springframework.boot" % "spring-boot-starter-actuator" % "2.2.4.RELEASE",
"io.micrometer" % "micrometer-registry-prometheus" % "1.2.0"
和 management.endpoints.web.exposure.include="prometheus" 在 application.conf 中。
尝试在 spring 应用程序中使用 spring boot 执行器时。
当我在本地启动我的服务并尝试点击时:
http://localhost:
/actuator/prometheus
它给出 404。
任何人都可以在这方面提供任何线索吗?
【问题讨论】:
-
你能让其他执行器工作吗?我不熟悉在 Spring 中使用 Play 框架。
-
No /actuator api 本身给出 404
标签: spring playframework prometheus micrometer