I’ve added the dependency according to the ducomantaion
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
</dependency>
And changed the yml file to:
management:
endpoints:
web:
exposure:
include: prometheus
base-path: /
If I go to http://localhost:8080/actuator
I’m getting this :
[![enter image description here][1]][1]
As you can see, there is no prometheus
In http://localhost:8080/actuator/prometheus
I’m getting this error:
[![enter image description here][2]][2]
I’ve tried everything that is written in those answers:
Getting “Whitelabel Error Page” when opening “/actuator/mappings”
Unable to access Spring Boot Actuator “/actuator” endpoint
Spring Boot /actuator returns 404 not found
Noting seems to be working, any idea?
[1]: https://i.sstatic.net/jyMu0JeF.png
[2]: https://i.sstatic.net/nSsbjFmP.png