theRealWardo / docker-monitoring

A collection of approaches to monitoring Docker containers
8 stars 2 forks source link

Docker Monitoring Playground

This is my collection of random attempts at monitoring Docker containers using various open source technologies. Neither closed source nor paid services (like DataDog) will be discussed/covered in this playground. If there is a piece of software you think might be super awesome at monitoring Docker containers please file an issue, +1 an existing issue or send a PR!

If you want to check out these stacks, you'll need to have installed Fig. To run any of them, just go into the directory with fig.yml of the stack you want to try and run fig up -d.

cAdvisor → InfluxDB ← Grafana

cadvisor-influxdb-grafana contains a fig.yml file that brings up 3 containers.

You can checkout what cAdvisor is seeing by going to yourhost:8080. Then look at what InfluxDB is collecting by going to yourhost:8083 and log in with the user name root and password root. Finally, to try graphing in Grafana you'll want to run fig logs grafana which will print the password to yourhost:8088. Note that Grafana dashboards will not persist.

Dockerana

dockerana contains a fig.yml file that brings up 7 containers.

This is a pretty large stack with a lot going on, but basically it seems that each machine should run something like ingestsyslog which is monitoring the host machine and reporting the number of running processes and more to StatsD. I could only see loadavg and processes reported but the code seems to indicate more is supposed to be happening. I didn't really dig in to try and get more to work (yet). Anyway, you can look at the data in Graphite at yourhost:8080 or go to the Grafana dashboard at yourhost:8081. You can add more containers that report data with docker run -d --link dockerana_statsd_1:statsd dockerana/dockerana or similar.