infra-container_exporter icon indicating copy to clipboard operation
infra-container_exporter copied to clipboard

Container sends 0 values with systemd

Open ynnt opened this issue 9 years ago • 3 comments

Hello,

I'm using container-exporter to monitor docker containers on debian 8 which use systemd as init system Also I see system services such as sshd or mdadm. Example: ` container_memory_working_set_bytes{id="/system.slice/docker-3f7eba3c3b2a63c8bbba4f679ca2d2ba704b501890c112218dbdfaa66e2a8041.scope",name="admiring_newton"} 0

container_memory_working_set_bytes{id="/system.slice/docker-576a59ee026bf956a550cf1cd2beb42c1859a3ae44b110b5fbc504cf2127395d.scope",name="cadvisor"} 0 container_memory_working_set_bytes{id="/system.slice/docker-6fcea541f42e9de0778f5e543b145a0e9a845048fabc66829e045ddf276820b5.scope",name="graylog-web-ui"} 0

container_memory_working_set_bytes{id="/system.slice/docker-7b66c376e6db9bfd000fe750a9dd7c6f97b2a86b3eac852fb8aab3a970a4f37f.scope",name="sinopia"} 0 `

ynnt avatar Jun 23 '15 13:06 ynnt

Hey,

You may want to see issue #1. For me this was resolved following the advice to pass in the argument of -parent system.slice

wsimmonds avatar Jun 24 '15 12:06 wsimmonds

@wsimmonds Thank you for reply, now it shows me everything but memory usage

ynnt avatar Jun 24 '15 12:06 ynnt

I have the same results as @ynnt - CPU figures coming back now that I've added -parent system.sice but no memory related ones.

daf avatar Nov 06 '15 21:11 daf