LXC Containers Stats Are Not Shown

Yes, just to test. I built a Netdata image with debugging.

  • Create netdata.conf with the following content:
[logs]
  debug flags = 0x0000000000100000
  • Run this docker command
docker run -d --name=netdata_test_cgroups \
-p 20000:19999 \
-v netdatacache_test_cgroups:/var/cache/netdata \
-v /etc/passwd:/host/etc/passwd:ro \
-v /etc/group:/host/etc/group:ro \
-v /proc:/host/proc:ro \
-v /sys:/host/sys:ro \
-v $(pwd)/netdata.conf:/etc/netdata/netdata.conf \
-v /etc/os-release:/host/etc/os-release:ro \
--restart unless-stopped \
--cap-add SYS_PTRACE \
--security-opt apparmor=unconfined \
  ilyam8/netdata-test-for-github
  • wait 1 minute
  • to get the logs
docker logs netdata_test_cgroups 2>&1 | grep -i cgroup | grep -v "UUID"

When done, to remove

docker stop netdata_test_cgroups
docker rm netdata_test_cgroups
docker volume rm netdatacache_test_cgroups
docker rmi ilyam8/netdata-test-for-github:latest