2023-05-15 17:52:31 +02:00
|
|
|
# Visualize Prometheus metrics
|
|
|
|
|
|
|
|
### Requirements
|
|
|
|
- Run the docker-compose of the Controller.
|
|
|
|
- Run the docker-compose of prometheus.
|
|
|
|
|
|
|
|
|
|
|
|
### Check the metrics
|
2023-05-16 11:24:14 +02:00
|
|
|
- To check the raw metrics check the output of this url, in your browser: http://\<IP\>:1880/api/actuator/prometheus
|
|
|
|
- To check the metrics though GUI, with some graphs, check: http://\<IP\>:9090
|
2023-05-15 17:52:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
### Visualize metrics in Grafana
|
2023-05-16 11:24:14 +02:00
|
|
|
- Access grafana in: http://\<IP\>:3000/
|
2023-05-15 17:52:31 +02:00
|
|
|
- Give the default username and password: "admin" (for both).
|
|
|
|
- Specify the new password.
|
|
|
|
- Then, add a "Prometheus" datasource.
|
2023-05-16 11:24:14 +02:00
|
|
|
- Specify the prometheus url: http://\<IP\>:9090
|
2023-05-15 17:52:31 +02:00
|
|
|
- Save the datasource.
|
|
|
|
- Go to "dashboards", click "import", add the number "12900" in the input and click "load" and "next".
|
|
|
|
- Then select the "prometheus" datasource and click "import".
|
|
|
|
- Enjoy the graphs.
|
|
|
|
|