I want configure Spring actuator with Prometheus. Prometheus is deployed in Docker container. I followed these steps: added dependencies in Spring Boot
enable all actuators (I can see prometheus at localhost:8080/actuator/prometheus)
prometheus.yaml located at /etc/prometheus
I've started Spring boot application, listening on 8080 port.
I've started docker container with following command:
sudo docker run -p 9090:9090 -v /etc/prometheus/ prom/prometheus --config.file=/etc/prometheus/prometheus.yml
At localhost:9090 i can see prometheus UI, but prometheus doesn't show Springboot metrics...
Prometheus doesen't show my application as target:
enter image description here
This is my first question, sorry.
Could anyone help me?
I've tried a lot of tutorial, but nothing helped me. I expected to understand and solve problem.