Add container state metrics to docker plugin (#1791)

* Add container state metrics to docker plugin.

* Update changelog.
This commit is contained in:
Ross McDonald
2016-09-21 04:37:49 -05:00
committed by Cameron Sparr
parent 90c7475c68
commit 6b25a73629
4 changed files with 16 additions and 0 deletions

View File

@@ -154,6 +154,9 @@ func (d *Docker) gatherInfo(acc telegraf.Accumulator) error {
"n_cpus": info.NCPU,
"n_used_file_descriptors": info.NFd,
"n_containers": info.Containers,
"n_containers_running": info.ContainersRunning,
"n_containers_stopped": info.ContainersStopped,
"n_containers_paused": info.ContainersPaused,
"n_images": info.Images,
"n_goroutines": info.NGoroutines,
"n_listener_events": info.NEventsListener,