The objective of this example is to visualize Spring Boot Actuator Prometheus metrics in Grafana, which are previously dumped into Prometheus.
The Spring Boot application is a simple example of Spring Boot Actuator with all the endpoints enabled within the application.properties file.
In the configuration folder, you have the Docker commands to download Prometheus and Grafana. In the configuration folder, you have the prometheus.yml file required to start Prometheus.
Prometheus start at localhost:9090
Grafana start at localhost:3000.
git clone https://github.com/refactorizando-web/metrics-prometheus.git
mvn spring-boot:run
The application start at localhost:8080
[]: https://refactorizando.com/spring-boot-actuator-prometheus-grafana/