有点晚了-但仅作记录-我可以在2.0.0.RELEASE中验证它现在可以正常工作。
依赖关系(等级):
compile('org.springframework.boot:spring-boot-starter-web')compile('org.springframework.boot:spring-boot-starter-actuator')compile('io.micrometer:micrometer-registry-prometheus')application.yaml(参考)
management: endpoints: web: exposure: include: health,info,prometheus
我还使用RC1进行了测试-普罗米修斯端点由于某些原因未显示-就像@ROCKY解释的那样。



