Spring Boot 2 - Actuator Metrics Endpoint not working

前端 未结 12 1363
迷失自我
迷失自我 2020-12-08 00:35

In my Spring Boot App (2.0.0.M7) application.properties I set

management.endpoint.metrics.enabled=true

However, when i hit

         


        
12条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 01:16

    Okay i found the solution. I have added another line in application.properties

    management.endpoints.web.expose=*
    

    However, securing the actuator endoints is important

    Read here: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-monitoring.html

提交回复
热议问题