Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created docker_containers collector based on docker/docker-py #355

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ChristianKniep
Copy link

The current docker.py collector is not using docker/docker-py, so I created a collector that uses that library.

I renamed it to docker_containers because a) docker conflicts with the library used and b) I reckon there whould be a docker_engine collector as well.

$ python collectors/0/docker_containers.py
cpu.total.kernel 1481200605 0.0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.total.user 1481200605 23.4375 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.total.all 1481200605 23.4375 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu0 1481199508 25.8089697917 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 cpu=0 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu1 1481199508 0.0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 cpu=1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.usage 1481200605 368640 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.limit 1481200605 4143755264 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.unevictable 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_inactive_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_rss_huge 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.writeback 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_cache 1481200605 24576 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_mapped_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.mapped_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgfault 1481200605 707 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_writeback 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.hierarchical_memory_limit 1481200605 9223372036854771712 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_active_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.rss_huge 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.cache 1481200605 24576 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.active_anon 1481200605 364544 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgmajfault 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgpgout 1481200605 408 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgpgout 1481200605 408 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_active_anon 1481200605 364544 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_unevictable 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgfault 1481200605 707 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgmajfault 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_inactive_anon 1481200605 4096 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.inactive_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgpgin 1481200605 498 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_dirty 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgpgin 1481200605 498 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.rss 1481200605 344064 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.active_file 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.inactive_anon 1481200605 4096 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.dirty 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_rss 1481200605 344064 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.max_usage 1481200605 1646592 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_dropped 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_packets 1481200605 19 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_bytes 1481200605 1554 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_errors 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_errors 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_bytes 1481200605 258 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_dropped 1481200605 0 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_packets 1481200605 3 container_id=d1f2896c460ee57583e3cb0f6392c04cea94cd047857306d10ccb1d22a4d5c60 container_name=stress2 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.total.kernel 1481200607 0.0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.total.user 1481200607 24.4791666667 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.total.all 1481200607 24.4791666667 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu0.user 1481200607 25.7874527604 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=0 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu0.kernel 1481200607 25.7874527604 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=0 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu0.all 1481200607 51.5749055208 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=0 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu1.user 1481200607 0.0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu1.kernel 1481200607 0.0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
cpu.cpu1.all 1481200607 0.0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 cpu=1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.usage 1481200607 368640 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.limit 1481200607 4143755264 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.unevictable 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_inactive_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_rss_huge 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.writeback 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_cache 1481200607 24576 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_mapped_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.mapped_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgfault 1481200607 527 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_writeback 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.hierarchical_memory_limit 1481200607 9223372036854771712 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_active_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.rss_huge 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.cache 1481200607 24576 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.active_anon 1481200607 364544 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgmajfault 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgpgout 1481200607 301 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgpgout 1481200607 301 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_active_anon 1481200607 364544 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_unevictable 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgfault 1481200607 527 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgmajfault 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_inactive_anon 1481200607 4096 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.inactive_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.pgpgin 1481200607 391 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_dirty 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_pgpgin 1481200607 391 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.rss 1481200607 344064 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.active_file 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.inactive_anon 1481200607 4096 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.dirty 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.stats.total_rss 1481200607 344064 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
memory.max_usage 1481200607 1228800 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_dropped 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_packets 1481200607 22 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_bytes 1481200607 1812 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_errors 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_errors 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_bytes 1481200607 258 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.rx_dropped 1481200607 0 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress
net.eth0.tx_packets 1481200607 3 container_id=47e6958266abc00c634f5663e0f05a04466957fbb8dbb042b367f9087b761031 container_name=stress1 image_id=sha256:e20f2c9e4f0f0713df084d96699346769b397327d2ff66b4fd81484db3479a7e image_name=qnib/stress

Test coverage is 77%...

pytest collectors/test/ --cov collectors/0/docker_containers.py
============================== test session starts ==============================
platform darwin -- Python 2.7.12, pytest-3.0.5, py-1.4.31, pluggy-0.4.0
rootdir: /Users/ckniep/src/github.com/ChristianKniep/tcollector, inifile:
plugins: cov-2.4.0
collected 3 items

collectors/test/test_docker_container.py ...

---------- coverage: platform darwin, python 2.7.12-final-0 ----------
Name                                Stmts   Miss  Cover
-------------------------------------------------------
collectors/0/docker_containers.py     94    22    77%


=========================== 3 passed in 0.24 seconds ============================

@johann8384
Copy link
Member

Is the namespace for these metrics the same as the current docker collector?

@ChristianKniep
Copy link
Author

@johann8384 Ehm, dunno... have to check for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants