Spring Boot 2 - Actuator Metrics Endpoint not working

前端 未结 12 1395
迷失自我
迷失自我 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:30

    The following configuration works for me

    server.servlet.context-path=/travel management.endpoints.web.exposure.include=*

    Then you need to add context path: http://localhost:8080/travel/actuator/metrics/

提交回复
热议问题