{"action":"created","issue":{"url":"https://api.github.com/repos/firehol/netdata/issues/2668","repository_url":"https://api.github.com/repos/firehol/netdata","labels_url":"https://api.github.com/repos/firehol/netdata/issues/2668/labels{/name}","comments_url":"https://api.github.com/repos/firehol/netdata/issues/2668/comments","events_url":"https://api.github.com/repos/firehol/netdata/issues/2668/events","html_url":"https://github.com/firehol/netdata/issues/2668","id":254833030,"number":2668,"title":"Not seeing lxd containers","user":{"login":"candlerb","id":44789,"avatar_url":"https://avatars2.githubusercontent.com/u/44789?v=4","gravatar_id":"","url":"https://api.github.com/users/candlerb","html_url":"https://github.com/candlerb","followers_url":"https://api.github.com/users/candlerb/followers","following_url":"https://api.github.com/users/candlerb/following{/other_user}","gists_url":"https://api.github.com/users/candlerb/gists{/gist_id}","starred_url":"https://api.github.com/users/candlerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candlerb/subscriptions","organizations_url":"https://api.github.com/users/candlerb/orgs","repos_url":"https://api.github.com/users/candlerb/repos","events_url":"https://api.github.com/users/candlerb/events{/privacy}","received_events_url":"https://api.github.com/users/candlerb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-02T20:05:04Z","updated_at":"2017-09-02T21:08:55Z","closed_at":null,"author_association":"NONE","body":"According to [this page](https://github.com/firehol/netdata/wiki/monitoring-cgroups):\r\n\r\n> By default (without any configuration) netdata should pick systemd services, all kinds of containers (lxc, docker, etc) and virtual machines spawn by managers that register them with cgroups (qemu, libvirt, etc).\r\n\r\nI've just installed netdata on an ubuntu 16.04 host which has some lxd containers, using the quick form:\r\n\r\n~~~\r\nbash <(curl -Ss https://my-netdata.io/kickstart-static64.sh)\r\n~~~\r\n\r\nand it has given me `netdata v1.7.0-189-g06de36a9_rolling`\r\n\r\nHowever, none of the containers are being shown (nor the systemd cgroups for that matter).  I see these headings only:\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998367-ff3192ac-9020-11e7-8c81-9bc7ff7f1daf.png)\r\n\r\nThere *is* a graph under *Netdata Monitoring* for cgroups, showing that the cgroups collection is using a small amount of CPU time.\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998377-3a6c43f8-9021-11e7-88a2-701d27c85405.png)\r\n\r\nIf I curl <http://127.0.0.1:19999/netdata.conf>  I get:\r\n\r\n~~~\r\n...\r\n        # cgroups = yes\r\n...\r\n        # enable by default cgroups matching =  !*/init.scope  *.scope  !*/vcpu*  !*/emulator  !*.mount  !*.partition  !*.service  !*.slice  !*.swap  !*.user  !/  !/docker  !/libvirt  !/lxc  !/lxc/*/ns  !/machine  !/qemu  !/system  !/systemd  !/user  *\r\n~~~\r\n\r\nwhich I don't understand as it seems to *disable* docker, lxc etc.\r\n\r\nThe containers were all present before netdata started.\r\n\r\nThe cgroups info appears to be fine. For example, one of my containers is called \"prometheus\" and I have all these:\r\n\r\n~~~\r\n# find /sys/fs/cgroup -name 'prometheus'\r\n/sys/fs/cgroup/freezer/lxc/prometheus\r\n/sys/fs/cgroup/blkio/lxc/prometheus\r\n/sys/fs/cgroup/perf_event/lxc/prometheus\r\n/sys/fs/cgroup/devices/lxc/prometheus\r\n/sys/fs/cgroup/hugetlb/lxc/prometheus\r\n/sys/fs/cgroup/pids/lxc/prometheus\r\n/sys/fs/cgroup/net_cls,net_prio/lxc/prometheus\r\n/sys/fs/cgroup/cpu,cpuacct/lxc/prometheus\r\n/sys/fs/cgroup/memory/lxc/prometheus\r\n/sys/fs/cgroup/cpuset/lxc/prometheus\r\n/sys/fs/cgroup/systemd/lxc/prometheus\r\n~~~\r\n\r\nAny suggestions as to what I should do next?"},"comment":{"url":"https://api.github.com/repos/firehol/netdata/issues/comments/326769532","html_url":"https://github.com/firehol/netdata/issues/2668#issuecomment-326769532","issue_url":"https://api.github.com/repos/firehol/netdata/issues/2668","id":326769532,"user":{"login":"candlerb","id":44789,"avatar_url":"https://avatars2.githubusercontent.com/u/44789?v=4","gravatar_id":"","url":"https://api.github.com/users/candlerb","html_url":"https://github.com/candlerb","followers_url":"https://api.github.com/users/candlerb/followers","following_url":"https://api.github.com/users/candlerb/following{/other_user}","gists_url":"https://api.github.com/users/candlerb/gists{/gist_id}","starred_url":"https://api.github.com/users/candlerb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candlerb/subscriptions","organizations_url":"https://api.github.com/users/candlerb/orgs","repos_url":"https://api.github.com/users/candlerb/repos","events_url":"https://api.github.com/users/candlerb/events{/privacy}","received_events_url":"https://api.github.com/users/candlerb/received_events","type":"User","site_admin":false},"created_at":"2017-09-02T21:08:55Z","updated_at":"2017-09-02T21:08:55Z","author_association":"NONE","body":"Sorry - now I go back to the UI, they are there now.  I guess  I hadn't waited long enough for netdata to pick up the containers; and/or I needed to refresh the web page.\r\n\r\nBut now I have a different problem. One of my containers is called \"tick\", but there are two odd-looking extra items:\r\n\r\n*  `lxc tick user.slice user-0.slice session-377.scope`\r\n* ` lxc tick user.slice user-0.slice session-395.scope`\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998671-3d903e24-9029-11e7-85bc-74c49735fb27.png)\r\n\r\nWhen I filter your `find` command, I see there are cgroups for 377 but not 395.\r\n\r\n~~~\r\n# find /sys/fs/cgroup -name cpuacct.stat -o -name cpuacct.usage_percpu -o -name memory.stat -o -name memory.usage_in_bytes -o -name memory.msw_usage_in_bytes -o -name memory.failcnt -o -name blkio.io_service_bytes -o -name blkio.io_serviced -o -name blkio.throttle.io_service_bytes -o -name blkio.throttle.io_serviced -o -name blkio.io_merged -o -name blkio.io_queued | egrep '\\b(377|395)\\b'\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.throttle.io_serviced\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.io_serviced\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.throttle.io_service_bytes\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.io_service_bytes\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.io_merged\r\n/sys/fs/cgroup/blkio/lxc/tick/user.slice/user-0.slice/session-377.scope/blkio.io_queued\r\n/sys/fs/cgroup/cpu,cpuacct/lxc/tick/user.slice/user-0.slice/session-377.scope/cpuacct.usage_percpu\r\n/sys/fs/cgroup/cpu,cpuacct/lxc/tick/user.slice/user-0.slice/session-377.scope/cpuacct.stat\r\n/sys/fs/cgroup/memory/lxc/tick/user.slice/user-0.slice/session-377.scope/memory.usage_in_bytes\r\n/sys/fs/cgroup/memory/lxc/tick/user.slice/user-0.slice/session-377.scope/memory.failcnt\r\n/sys/fs/cgroup/memory/lxc/tick/user.slice/user-0.slice/session-377.scope/memory.stat\r\n~~~\r\n\r\n* `lxc tick` has `cpu`, `mem`, `disk` graphs. The values look plausible.\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998703-ef9f1144-9029-11e7-90f2-d88c73dfb30c.png)\r\n\r\n* `session-377.scope` has `cpu`, `mem`, `disk` graphs too, but they are zeros - even if I look back over the whole hour of history\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998751-13947bec-902b-11e7-8f1b-4b8d76734bbf.png)\r\n\r\n* `session-395.scope` has `net eth0` only; and none of the other containers have a `net` entry.\r\n\r\n![image](https://user-images.githubusercontent.com/44789/29998714-0a9631e4-902a-11e7-9e6e-0184f625fb10.png)\r\n"}}
{"actor":{"display_login":"candlerb"}}