Hello World of qcollect
A while back I stumbled upon Fullerite, a GOLANG metrics collector, which can reuses the collectors of the python Diamond collector.
One of the issues I had was, that it is not using the event time, but the process time of collected metrics. Thus, if you want to bulk update collected metrics, they will all have the same timestamp of the time they are push to the metrics backend.
So I forked the project and in the recent weeks renamed my fork to qcollector.
Furthermore I created a docker-stats collector that uses the latest docker libraries to collect metrics from docker 1.12.
A hello-world you ask? Off we go...
Hello World from docker-qcollect
I am using DockerForMac, which exposes the docker socket on
qcollect uses the Docker environment variables; in the next iteration this should be configured in a more convenient way.
➜ temp git clone https://github.com/qnib/docker-qcollect.git Cloning into 'docker-qcollect'... remote: Counting objects: 108, done. remote: Compressing objects: 100% (26/26), done. remote: Total 108 (delta 7), reused 0 (delta 0), pack-reused 78 Receiving objects: 100% (108/108), 163.91 KiB | 0 bytes/s, done. Resolving deltas: 100% (25/25), done. Checking connectivity... done. ➜ temp cd docker-qcollect ➜ docker-qcollect git:(master) docker-compose up -d Creating consul Creating influxdb Creating qcollect Creating grafana3 ➜ docker-qcollect git:(master)
After a couple of seconds you can get the metrics by pointing to localhost:3000
The influxdb backend shows the measurements taken.
Just as a sneak peak - looking forward to refine this project and add more and more collectors/handlers and other features.