Spring Boot 2 - Actuator Metrics Endpoint not working

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

    What worked for me is the following (in YAML format) working with spring boot 2 release:

    management:
      endpoints:
        web:
          exposure:
            include: info, health, metrics
      metrics:
        export:
          atlas:
            enabled: false
    

    also specific documentation can be found here

提交回复
热议问题