Spring Boot – Actuator Metrics Endpoint not working in docker image

  docker, micrometer, spring, spring-boot

In my Spring Boot App Yaml I have :

 management:
  metrics:
    export:
      simple:
        enabled: true
  endpoints:
    web:
      exposure:
        include: "*"

However, when i hit

localhost:8080/actuator/metrics 

its working in spring boot standalone app, but in the docker image i get 404.

what am i missing? is there any configuration needs to be done to run it in docker ? thanks for your responses.

Source: Docker Questions

LEAVE A COMMENT