Monitoring helps you understand the performance of your system, it shows you anomalies and informs you about your system's status.
In this article we will setup grafana, prometheus and node_exporter with docker for system monitoring.
Here's the docker compose configuration (you can find all config files from below as raw code):
Explanation of settings:
Grafana:
Prometheus:
Node_Exporter:
Explanation of settings:
Project structure:
.
├── docker-compose.yml
└── prometheus.yml
Lets try run the stack:
docker stack deploy -c docker-compose.yml monitoring-stack
You can access the grafana dashboard via http://localhost:1296
After that steps if you configure everything correctly it should be working! For visualization you import premade configs from grafana labs:
https://grafana.com/grafana/dashboards/405-node-exporter-server-metrics/
We’ve set up a fully functioning monitoring stack with prometheus, grafana and node_exporter with using docker.
For complete configurations you can visit: https://github.com/halitsever/grafana-docker-compose