You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 00:52:42