Example of how to monitor an application using:
- the prometheus client lib
- prometheus
- alermanager
- grafana
- cAdvisor
To run everything you just need docker-compose
.
Before running this command be aware that the docker files are quite heavy, so this could take a while
docker-compose up -d
I wrote several implementation using different frameworks. Feel free to used the one that suites you more.
I wrote some blog articles covering prometheus and monitoring:
-
The first one covers basic concepts and terminology.
-
The second one handles mostly alerting.