Docker Monitoring Stack with Grafana


The repo has been built to get a monitoring stack up and running within seconds and the components includes:

  • Grafana: For visualising graphs
  • Prometheus: Timeseries Database for Metrics
  • cAdvisor: Exposes Container Metrics
  • Node-Exporter: Exposes Node Metrics
  • Alertmanager: Manages Alerts


First clone the repository:

git clone
cd docker-monitoring-stack-gpnc
help                           This help.
up Runs the containers in detached mode
clean Stops and removes all containers
logs View the logs from the containers
open Opens tabs in container


To boot the stack, we can use make up, but for this tutorial we will use the docker commands:

docker-compose up -d
docker-compose ps
Name                   Command                  State               Ports         
cadvisor /usr/bin/cadvisor -logtostderr Up (healthy) 8080/tcp
grafana / Up>3000/tcp
node-exporter /bin/node_exporter --path. ... Up 9100/tcp
prometheus /bin/prometheus --config.f ... Up>9090/tcp
alertmanager /bin/alertmanager --config ... Up>9093/tcp


The following endpoints are available:


To remove the containers using docker compose (or make clean):

docker-compose down

Github Repository

You can find the github repository below, if you find it useful, please share or send me some love with a star:

Thank You

Thanks for reading, if you like the project, feel free to star, fork or share it, check out my website, read my newsletter or follow me at @ruanbekker on Twitter.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ruan Bekker

Ruan Bekker

DevOps Engineer and Open Source Enthusiast