Monitoring for the private Docker cloud project

A few days ago I blogged about my holiday project (Building a private cloud with Docker [1]) which is just a proof of concept as it lacks important features. One of them is monitoring which is a tough topic in cluster environments.
There are a few open source, free to use monitoring solutions for Docker out there, the most interesting one (imho) being cadvisor [2] for monitoring Docker containers and heapster [3] for aggregating cadvisor nodes in a cluster. Unfortunately I wasn’t able to get heapster running (I suspect a go-lang version mismatch), so once again I scripted my way through the jungle.
The result are two new scripts in the project repository [4]: node-stats, which reports statistics for a node and cloud-stats, which runs node-stats on every known node and aggregates the results.

node-stats connects to a node via SSH and collects filesystem and memory statistics from the kernel, and container statistics from Docker. It combines the output of those statistics into a comprehensive report; the fun part is the (for my league) elaborate parsing of intermediate outputs.

cloud-stats iterates over all known nodes (the list-nodes script knows them) and sequentially calls node-stats for each node and prints the results. The generated report is far from the quality what other tools like cadvisor or nagios generate and it is far from real time, but it’s a start and it doesn’t require any special software running on either the manager or the worker nodes.

Resources

[1] Building a private cloud with Docker
https://blog.georgovassilis.com/2015/09/14/building-a-private-cloud-with-docker

[2] cadvisor
https://github.com/google/cadvisor

[3] heapster
https://github.com/kubernetes/heapster

[4] cloud matrix github repository
https://github.com/ggeorgovassilis/cloudmatrix

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.