Spring Boot 3升级后actuator/prometheus端点返回空响应求助
Spring Boot 3升级后Actuator Prometheus端点返回200但无内容
升级至Spring Boot 3后,/actuator/prometheus端点虽返回200状态码,但无任何内容返回。查看/actuator端点确认该端点已暴露。
项目依赖
项目引入的Actuator与Micrometer Prometheus依赖如下:
implementation "io.micrometer:micrometer-registry-prometheus" implementation "io.micrometer:micrometer-core" implementation "org.springframework.boot:spring-boot-actuator-autoconfigure:3.1.10" implementation "org.springframework.boot:spring-boot-starter-actuator:3.1.10"
配置信息
application.properties配置如下:
management.endpoints.web.exposure.include=env,info,prometheus,health management.prometheus.metrics.export.enabled=true management.endpoint.prometheus.enabled=true
通过浏览器和Postman向localhost:8080/actuator/prometheus发送GET请求均得到空响应。
请问是否遗漏了什么配置或步骤?
内容的提问来源于stack exchange,提问作者Oludamilare
相关产品推荐
相关产品推荐

