Collect docker container stats into InfluxDB. Useful for setting up analytics and monitoring on container data with Influx and Grafana.
After building the docker container (called influxdb-docker-stats), a sample run command would look like the following.
docker run --volume=/var/run/docker.sock:/var/run/docker.sock influxdb-docker-stats
Environment variables configure where stats are collected and how they are tagged.
Set the url where to collect stats for InfluxDB
http://user:pass@hostname:8086/dbname
The series name for container data.
Default is container-stats
If specified, this will use this container label value for the name
field in each stat record.
Default is the primary container name.