close
The Wayback Machine - https://web.archive.org/web/20220401160303/https://github.com/ruanbekker/docker-monitoring-stack-gpnc
Skip to content
main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

docker-monitoring-stack-gpnc

Grafana Prometheus Node-Exporter cAdvisor - Docker Monitoring Stack

Boot

Boot the stack:

docker-compose up -d

Ensure all containers are running:

docker-compose ps

The output should looke like this:

    Name                   Command                  State               Ports         
--------------------------------------------------------------------------------------
cadvisor        /usr/bin/cadvisor -logtostderr   Up (healthy)   8080/tcp              
grafana         /run.sh                          Up             0.0.0.0:3000->3000/tcp
node-exporter   /bin/node_exporter --path. ...   Up             9100/tcp              
prometheus      /bin/prometheus --config.f ...   Up             0.0.0.0:9090->9090/tcp

Access Grafana

Access grafana on Grafana Home and you should see the dashboard that was provisioned:

Image

Once you select the dashboard, it should look something like this:

Image

When you select "Alerting" and "Alert rules" you will find the recording and alerting rules:

Image

We can expand the alerting rules:

Image

And then we can view more detail on a alert rule:

Image

And for our container metrics we can access the Container Metrics dashboard:

Image

Endpoints

The following endpoints are available:

Container Internal Endpoint External Endpoint
Grafana http://grafana:3000 http://localhost:3000
Prometheus http://prometheus:9090 http://localhost:9090
Node-Exporter http://node-exporter:9100 http://localhost:9100
cAdvisor http://cadvisor:8080 N/A

Cleanup

To remove the containers:

docker-compose down

Resources

Heavily inspired from this exporter guide

About

Grafana Prometheus Node-Exporter cAdvisor - Docker Monitoring Stack

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published