Open usbport11 opened 7 months ago
Create folders
mkdir -p /var/lib/containers/storage/image/overlay/layerdb/mounts/e93d554c34dc1d90f17f367a30a5d861ef07e8b86752822182a173485a289a6a
mkdir -p /var/lib/containers/storage/containers/e93d554c34dc1d90f17f367a30a5d861ef07e8b86752822182a173485a289a6a
mkdir -p /var/lib/containers/storage/overlay/upper
Create file
> /var/lib/containers/storage/image/overlay/layerdb/mounts/e93d554c34dc1d90f17f367a30a5d861ef07e8b86752822182a173485a289a6a/mount-id
Restart
systemctl restart cadvisor
Container appear in cAdvisor. But now in prometheus after query there are two containers with same name.
Query
container_cpu_usage_seconds_total{name!=""}
Result
container_cpu_usage_seconds_total{cpu="cpu00", id="/machine.slice/libpod-conmon-e93d554c34dc1d90f17f367a30a5d861ef07e8b86752822182a173485a289a6a.scope", image="docker.io/library/alpine:latest", instance="192.168.1.209:8080", job="cadviser", name="test"}
0.14341915
container_cpu_usage_seconds_total{cpu="cpu00", id="/machine.slice/libpod-e93d554c34dc1d90f17f367a30a5d861ef07e8b86752822182a173485a289a6a.scope", image="docker.io/library/alpine:latest", instance="192.168.1.209:8080", job="cadviser", name="test"}
1.872301843
Could you please check if this helps you?: https://github.com/google/cadvisor/issues/3421#issuecomment-2449725212
Problem: cAdvisor not see container nor in docker nor in podman.
System
cAdvisor standalone binary 0.49.1
Steps to reproduce
[root@cadviser-podman /]# dnf install podman
[root@cadviser-podman /]# systemctl restart cadvisor
Please help.