Spring Boot 2 - Actuator Metrics Endpoint not working

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

    According micrometer docs .Spring Boot 2.0.x supports Micrometer out of the box via Spring Boot Actuator.
    The endpoint metric is disabled by default, in line with Spring Boot 2’s litmus test that any endpoint that potentially exposes sensitive data about an application should be disabled by default. It can be enabled by setting:

    management.endpoints.web.exposure.include: metrics

    Navigating to /actuator/metrics displays a list of available meter names.

    To access them, use something like this: http://localhost:8080/actuator/metrics/jvm.memory.used

提交回复
热议问题