# LXC Containers Stats Are Not Shown

**URL:** <https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616>\
**Category:** Help\
**Created:** [December 8, 2022, 9:58am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616 "2022-12-08T09:58:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 8, 2022, 9:58am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/1 "2022-12-08T09:58:24Z")

</div>

## Problem/Question

As stated in the title, container metrics (lxc containers) are not shown/visible in the Netdata dashboard. Now the version we’re using is v1.37.1. Netdata is installed on the host, and on the same host we have several lxc containers running. Netdata shows metrics for the actual host but not the metrics of the lxc containers.

Interestingly, we have the same version of Netdata on another host and there we do not see this problem.

## Relevant docs you followed/actions you took to solve the issue

We tried uninstalling Netdata completely and re-installed it.

## What I expected to happen

The dashboard should show lxc container metrics.

Below I’ve shared the errors we see in the error.log file on the host where container metrics are not shown.

(I’m hitting the body character limit, hence the pastebin link)

**On host where the issue is** :

> <https://pastebin.com/tkfY3EGt>

**On host where we see Netdata showing container info but some error related to cgroup-network** :

> <https://pastebin.com/qAfGsQE4>

Please ask if you need more information, happy to provide!

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 14, 2022, 9:36am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/2 "2022-12-14T09:36:27Z")

</div>

@ilyam8

Can you please look into this?

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 14, 2022, 9:52am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/3 "2022-12-14T09:52:51Z")

</div>

Hi, @philip. Let’s do the following:

- set `errors flood protection period` to `0` (netdata.conf, `[logs]` section).
- clear error log (`sudo cp /dev/null /opt/netdata/var/log/netdata/error.log`, remove `/opt/netdata` if you don’t use the install prefix).
- restart netdata service
- wait 1 minute
- grep cgroup related logs (`grep -i cgroup /opt/netdata/var/log/netdata/error.log`, remove `/opt/netdata` if you don’t use the install prefix).
- share the grep output here please

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 14, 2022, 10:19am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/4 "2022-12-14T10:19:55Z")

</div>

@ilyam8

Here is the output from /var/log/netdata/error.log

```auto
2022-12-14 11:14:16: ebpf.plugin INFO : EBPF CGROUP : thread with task id 452551 finished
2022-12-14 11:14:16: netdata INFO : MAIN : EXIT: Stopping main thread: PLUGIN[cgroups]
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : cleaning up...
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : stopping discovery thread worker
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : waiting for discovery thread to finish...
2022-12-14 11:14:19: netdata INFO : PLUGIN[cgroups] : thread with task id 452394 finished
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : thread created with task id 610283
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : set name of thread 610283 to PLUGIN[cgroups]
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : cgroups v2 (unified cgroups) is available but are disabled on this system.
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : use unified cgroups false
2022-12-14 11:14:23: ebpf.plugin INFO : EBPF CGROUP : thread created with task id 610446
2022-12-14 11:14:23: ebpf.plugin INFO : EBPF CGROUP : set name of thread 610446 to EBPF CGROUP

```

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 14, 2022, 11:13am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/5 "2022-12-14T11:13:13Z")

</div>

@philip do you have any other `group` logs after 11:14:23?

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 14, 2022, 11:30am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/6 "2022-12-14T11:30:39Z")

</div>

@ilyam8

You mean “cgroup”? No.

Hmm…okay. I did a grep for “group” and got this:

```auto
2022-12-14 11:14:16: ebpf.plugin INFO : EBPF CGROUP : thread with task id 452551 finished
2022-12-14 11:14:16: netdata INFO : MAIN : EXIT: Stopping main thread: PLUGIN[cgroups]
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : cleaning up...
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : stopping discovery thread worker
2022-12-14 11:14:16: netdata INFO : PLUGIN[cgroups] : waiting for discovery thread to finish...
2022-12-14 11:14:19: netdata INFO : PLUGIN[cgroups] : thread with task id 452394 finished
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : thread created with task id 610283
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : set name of thread 610283 to PLUGIN[cgroups]
2022-12-14 11:14:23: apps.plugin ERROR : MAIN : PROCFILE: Cannot open file '/etc/netdata/apps_groups.conf' (errno 2, No such file or directory)
2022-12-14 11:14:23: apps.plugin INFO : MAIN : Cannot read process groups configuration file '/etc/netdata/apps_groups.conf'. Will try '/usr/lib/netdata/conf.d/apps_groups.conf'
2022-12-14 11:14:23: apps.plugin INFO : MAIN : Loaded config file '/usr/lib/netdata/conf.d/apps_groups.conf'
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : cgroups v2 (unified cgroups) is available but are disabled on this system.
2022-12-14 11:14:23: netdata INFO : PLUGIN[cgroups] : use unified cgroups false
2022-12-14 11:14:23: INFO : MAIN : Cannot read process groups configuration file '/etc/netdata/apps_groups.conf'. Will try '/usr/lib/netdata/conf.d/apps_groups.conf'
2022-12-14 11:14:23: ebpf.plugin INFO : EBPF CGROUP : thread created with task id 610446
2022-12-14 11:14:23: ebpf.plugin INFO : EBPF CGROUP : set name of thread 610446 to EBPF CGROUP
2022-12-14 11:14:24: go.d ERROR: prometheus[kafka_consumer_group_exporter_local] Get "http://127.0.0.1:9208/metrics": dial tcp 127.0.0.1:9208: connect: connection refused
2022-12-14 11:14:24: go.d ERROR: prometheus[kafka_consumer_group_exporter_local] check failed
2022-12-14 11:14:24: go.d ERROR: prometheus[exporter_for_grouped_process_local] Get "http://127.0.0.1:9644/metrics": dial tcp 127.0.0.1:9644: connect: connection refused
2022-12-14 11:14:24: go.d ERROR: prometheus[exporter_for_grouped_process_local] check failed

```

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 14, 2022, 11:42am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/7 "2022-12-14T11:42:35Z")

</div>

Yep, I meant to say `cgroup`.

- Some logs can be missing if you haven’t disabled log flood protection (`errors flood protection period`). If you did it - I don’t know what is happening.
- We can add cgroups.plugin debug logging but it will require [compiling Netdata with debugging](https://learn.netdata.cloud/docs/agent/daemon#compiling-netdata-with-debugging). An alternative solution is to create a Docker container with a custom Netdata image (I can do it).

Additionally, can you send me a [snapshot](https://learn.netdata.cloud/docs/dashboard/import-export-print-snapshot#export-a-snapshot) to ilya@netdata.cloud?

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 14, 2022, 11:58am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/8 "2022-12-14T11:58:25Z")

</div>

Hello @ilyam8

I’ve disabled it, as you said, set it to zero (before it was 1200).

With cgroup, there was no other logs. The ones I posted were the only cgroup logs, no more after 11:14:23

As to Docker think you said: Do you mean you’ll generate a custom docker image for us so that we can deploy Netdata on our systems using Docker?

As you asked, I emailed the snapshot to you.

Thank you very much for your assistance!

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 15, 2022, 10:04am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/9 "2022-12-15T10:04:29Z")

</div>

> [@philip](#):
>
> As to Docker think you said: Do you mean you’ll generate a custom docker image for us so that we can deploy Netdata on our systems using Docker?

Yes, just to test. I built a Netdata image [with debugging](https://learn.netdata.cloud/docs/agent/daemon#compiling-netdata-with-debugging).

- Create `netdata.conf` with the following content:

```cmd
[logs]
  debug flags = 0x0000000000100000

```

- Run this docker command

```docker
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

```auto
docker logs netdata_test_cgroups 2>&1 | grep -i cgroup | grep -v "UUID"

```

When done, to remove

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

```

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 15, 2022, 10:54am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/10 "2022-12-15T10:54:57Z")

</div>

@ilyam8

Here is the logs you requested. I’ve uploaded it to Google Drive as pastebin too limit the content size to 512KB.

> **[netdata\_docker\_logs.txt](https://drive.google.com/file/d/1kJMOu-2q5TEWYJ0HSS7iJ2NRw0SZvQKQ/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 15, 2022, 11:35am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/11 "2022-12-15T11:35:50Z")

</div>

Can you also share the `tree -d /sys/fs/cgroup/` output?

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 15, 2022, 11:46am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/12 "2022-12-15T11:46:28Z")

</div>

@ilyam8

Here:

> **[cgroup\_tree.txt](https://drive.google.com/file/d/1okwnMbrc7P8Z7alp23rrm-qErbGDZA38/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 15, 2022, 12:07pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/13 "2022-12-15T12:07:51Z")

</div>

Interesting, and you don’t see the container metrics?

It looks like all `lxc.payload.X` groups have been found and are being collected.

- found and renamed

```auto
Downloads $ grep "lxc\.payload\..*" netdata_docker_logs.txt | grep "is called"
2022-12-15 10:39:27: cgroup-name.sh: INFO: cgroup 'lxc.payload.hydrogen' is called 'hydrogen'
2022-12-15 10:39:28: cgroup-name.sh: INFO: cgroup 'lxc.payload.planb' is called 'planb'
2022-12-15 10:39:30: cgroup-name.sh: INFO: cgroup 'lxc.payload.microsrvc2' is called 'microsrvc2'
2022-12-15 10:39:32: cgroup-name.sh: INFO: cgroup 'lxc.payload.mynode7' is called 'mynode7'
2022-12-15 10:39:37: cgroup-name.sh: INFO: cgroup 'lxc.payload.sapphirecap4' is called 'sapphirecap4'
2022-12-15 10:39:39: cgroup-name.sh: INFO: cgroup 'lxc.payload.emailserver' is called 'emailserver'
2022-12-15 10:39:41: cgroup-name.sh: INFO: cgroup 'lxc.payload.reverseprox1' is called 'reverseprox1'
2022-12-15 10:39:43: cgroup-name.sh: INFO: cgroup 'lxc.payload.butterflyeu' is called 'butterflyeu'
2022-12-15 10:39:49: cgroup-name.sh: INFO: cgroup 'lxc.payload.peng' is called 'peng'
2022-12-15 10:39:51: cgroup-name.sh: INFO: cgroup 'lxc.payload.bipradix' is called 'bipradix'
2022-12-15 10:39:52: cgroup-name.sh: INFO: cgroup 'lxc.payload.ireallydo' is called 'ireallydo'
2022-12-15 10:39:54: cgroup-name.sh: INFO: cgroup 'lxc.payload.ads' is called 'ads'
...

```

- reading metrics

```auto
Downloads $ grep "lxc\.payload\..*" netdata_docker_logs.txt | grep "reading metrics for cgroups"
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.hydrogen'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.planb'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.microsrvc2'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.mynode7'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.sapphirecap4'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.emailserver'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.reverseprox1'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.butterflyeu'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.peng'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.bipradix'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.ireallydo'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.ads'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.kindao'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.viecondocker'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.iran'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.aclserver'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.sapphirecap2'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.deloittefond'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.authservice'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.valtameri'
2022-12-15 10:43:31: netdata DEBUG : PLUGIN[cgroups] : (1613@collectors/cgroups.p:read_cgroup ): reading metrics for cgroups '/lxc.payload.darpa'
...

```

> **The following got filtered out**
>
> ```auto
> Downloads $ grep "disabled by" netdata_docker_logs.txt | grep -Eo "name '[^']+'" | sort | uniq | sed -e "s/^name '//" -e "s/'$//"
> /
> dev-hugepages.mount
> dev-mqueue.mount
> docker
> lxc.monitor.aclserver
> lxc.monitor.ads
> lxc.monitor.adw
> lxc.monitor.androphedia
> lxc.monitor.authservice
> lxc.monitor.bdcloudapps
> lxc.monitor.bhtwebdock
> lxc.monitor.bigcheese
> lxc.monitor.bipradix
> lxc.monitor.bnw
> lxc.monitor.bot
> lxc.monitor.butterflyeu
> lxc.monitor.bytesahead
> lxc.monitor.capitalcom
> lxc.monitor.cardataapi
> lxc.monitor.cdmain
> lxc.monitor.chat
> lxc.monitor.checkworf
> lxc.monitor.cms
> lxc.monitor.coreconnect
> lxc.monitor.darpa
> lxc.monitor.deloittefond
> lxc.monitor.dhke
> lxc.monitor.docker1
> lxc.monitor.documotor
> lxc.monitor.durarerp
> lxc.monitor.dy11
> lxc.monitor.emailserver
> lxc.monitor.entegrali
> lxc.monitor.escisnew
> lxc.monitor.fourfpstudio
> lxc.monitor.fynbusweb3
> lxc.monitor.healthsy
> lxc.monitor.hobbyserver
> lxc.monitor.hordalan2023
> lxc.monitor.hydrogen
> lxc.monitor.india1
> lxc.monitor.iran
> lxc.monitor.ireallydo
> lxc.monitor.istudyturkiy
> lxc.monitor.jaczulloisno
> lxc.monitor.jsq
> lxc.monitor.justix
> lxc.monitor.kindao
> lxc.monitor.komeil1
> lxc.monitor.lurianbase
> lxc.monitor.maghalejoo2
> lxc.monitor.maxthon
> lxc.monitor.mc
> lxc.monitor.microsrvc1
> lxc.monitor.microsrvc2
> lxc.monitor.microsrvc3
> lxc.monitor.microsrvc4
> lxc.monitor.mnd
> lxc.monitor.moseacg
> lxc.monitor.musrv
> lxc.monitor.mynode6
> lxc.monitor.mynode7
> lxc.monitor.nako
> lxc.monitor.nanodeck
> lxc.monitor.ouwgredmine
> lxc.monitor.oxen2
> lxc.monitor.pbserver
> lxc.monitor.peng
> lxc.monitor.phs
> lxc.monitor.planb
> lxc.monitor.pre002finlan
> lxc.monitor.projectzomb
> lxc.monitor.puoti2022
> lxc.monitor.randsomar
> lxc.monitor.raspberry
> lxc.monitor.redbullhel
> lxc.monitor.reverseprox1
> lxc.monitor.robertoarred
> lxc.monitor.sapphirecap1
> lxc.monitor.sapphirecap2
> lxc.monitor.sapphirecap3
> lxc.monitor.sapphirecap4
> lxc.monitor.sapphirecapi
> lxc.monitor.sapphirecapn
> lxc.monitor.server6
> lxc.monitor.shiftplanner
> lxc.monitor.strapi
> lxc.monitor.suissebankke
> lxc.monitor.testrecovery
> lxc.monitor.tntrr
> lxc.monitor.ubuntu5
> lxc.monitor.v2ui
> lxc.monitor.valtameri
> lxc.monitor.viecondocker
> lxc.monitor.vldirsrv002
> lxc.monitor.vm
> lxc.monitor.vps210thread
> lxc.monitor.vps410thread
> lxc.monitor.vps55thread
> lxc.monitor.weather
> lxc.monitor.webdev
> lxc.monitor.wienerslol
> lxc.monitor.wp221967
> lxc.monitor.wwsszz
> lxc.pivot
> proc-sys-fs-binfmt_misc.mount
> sys-fs-fuse-connections.mount
> sys-kernel-config.mount
> sys-kernel-debug.mount
> sys-kernel-tracing.mount
> system.slice
> system.slice/boot-efi.mount
> system.slice/boot.mount
> system.slice/dev-disk-by/x2did-dm/x2duuid/x2dlvm/x2di01qb1bwuulokcjaambdkxtzbizwa3euwk6uf32e4ey4bwndrlsbwzqortha8epe.swap
> system.slice/docker.socket
> system.slice/snap-core20-1405.mount
> system.slice/snap-lxd-22923.mount
> system.slice/snap-lxd-23680.mount
> system.slice/snap-snapd-15534.mount
> system.slice/snapd.socket
> system.slice/system-getty.slice
> system.slice/system-getty.slice/getty_tty1.service
> system.slice/system-lvm2/x2dpvscan.slice
> system.slice/system-modprobe.slice
> system.slice/system-systemd/x2dfsck.slice
> user.slice
> 
> ```

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 15, 2022, 12:21pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/14 "2022-12-15T12:21:47Z")

</div>

@ilyam8

No. We don’t see the container metrics.

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 15, 2022, 12:51pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/15 "2022-12-15T12:51:16Z")

</div>

Do you mean the Netdata docker container (netdata\_test\_cgroups) has no container metrics? (`<IP>:20000`)

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 15, 2022, 12:53pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/16 "2022-12-15T12:53:33Z")

</div>

@ilyam8

Yes, after creating the container I visited the agent dashboard and I didn’t find the container metrics (usually I would find them in the bottom right)

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 16, 2022, 8:05am UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/17 "2022-12-16T08:05:26Z")

</div>

@ilyam8

I followed the instructions [here](https://learn.netdata.cloud/docs/agent/collectors/cgroups.plugin) and uncommented those lines and restarted Netdata, still container metrics are not shown.

I uncommented these lines (that “lxc.monitor” pattern line as well) and restarted Netdata but for some reason the container metrics are not shown.

Check the screenshot to see the changes I made.

Any input on this?

 ![Screenshot from 2022-12-16 13-33-25](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/6/6e43e3f60b7ab589a3fcf6e4676b2e7601dfbc32.png)

---

<div class="post-metadata">

**Author:** ![ilyam8](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/ilyam8/32/134_2.png) [@ilyam8](https://community.netdata.cloud/u/ilyam8)\
**Post date:** [December 16, 2022, 4:39pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/18 "2022-12-16T16:39:13Z")

</div>

I think you need `lxc.playload.*` (no config changes are needed), not `lxc.monitor.*`. I don’t know what is happening. I see no problems in the logs. I will add more debug logs and build another custom image.

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 16, 2022, 5:00pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/19 "2022-12-16T17:00:08Z")

</div>

Is this correct? I am not sure what the right syntax is.

```auto
 search for cgroups in subpaths matching = !*/init.scope !*-qemu !*.libvirt-qemu !/init.scope !/system !/systemd !/user !/user.slice !/lxc/*/* !/lxc.monitor !/lxc.payload/*/* /lxc.payload.* *

```

---

<div class="post-metadata">

**Author:** ![philip](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@philip](https://community.netdata.cloud/u/philip)\
**Post date:** [December 19, 2022, 1:07pm UTC](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616/20 "2022-12-19T13:07:38Z")

</div>

@ilyam8

Sorry to bother but is that the right syntax? I guess an “!” means not to consider that, so I removed it and restarted Netdata but still nothing - no information on container metrics.

[Next page](https://community.netdata.cloud/t/lxc-containers-stats-are-not-shown/3616.md?page=2)
