Add container state metrics to docker plugin (#1791)
* Add container state metrics to docker plugin. * Update changelog.
This commit is contained in:
committed by
Cameron Sparr
parent
90c7475c68
commit
6b25a73629
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user