Monitor your Docker containers using prometheus, cAdvisor , node-exporter and grafana
- Docker CE, Docker EE, or Docker Desktop on Windows
- docker-compose
-
Clone this repo:
git clone https://github.com/jmb12686/prometheus-monitoring cd prometheus-monitoring
-
Change line #5 in the
alert.rules.yml
file to correspond to a container name that you want to explicitly monitor and fire alerts for. Changename="YOUR-CONTAINER-NAME-HERE"
to match your Docker container NAME. -
Start the stack with docker-compose:
docker-compose up
If launching from a Windows host, be sure to set the following Docker-Compose variable in powershell first:
$Env:COMPOSE_CONVERT_WINDOWS_PATHS=1
Links to dashboards of each monitoring tool deployed in this stack
-
cAdvisor - Collects and exports resource usage and performance statistics of Docker containers.
-
node-exporter - Prometheus exporter for hardware and OS metrics
-
Prometheus - Prometheus monitoring system and time series database.
-
Grafana - monitoring, metric analytics, and dashboard visualization tool.
- http://localhost:3000
- default user/pass : admin/admin