You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i.e. a container with a name of /system.slice/docker-394b73cdd59f26778a19868b9f960837914c12392177f76a54841df6f9f20586.scope, which I've learned is the name of the container's cgroup.
Which has the PID I want - 337870. However this involves retrieving the entirety of /ps output to retrieve the PID of a specific container, which has non-trivial performance implications in my usecase. I tried to do this:
To retrieve the specific container's information, but then I just get an empty list:
[]
And trying variations of the name (e.g. copying the /../docker-394b73cdd59f26778a19868b9f960837914c12392177f76a54841df6f9f20586.scope cgroup_path specified in the /ps output above) invariably results in a:
process listing failed: unknown container
Would really appreciate help on this, thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi all, I'm trying to understand if I can use cAdvisor to monitor for newly created containers and then retrieve the PID of those specific containers.
I am using this API:
Which allows me to monitor for new containers. I then receive a message such as:
i.e. a container with a name of
/system.slice/docker-394b73cdd59f26778a19868b9f960837914c12392177f76a54841df6f9f20586.scope
, which I've learned is the name of the container's cgroup.If I query the (undocumented)
/ps
endpoint at:Then I see my container in the output:
Which has the PID I want - 337870. However this involves retrieving the entirety of
/ps
output to retrieve the PID of a specific container, which has non-trivial performance implications in my usecase. I tried to do this:To retrieve the specific container's information, but then I just get an empty list:
And trying variations of the name (e.g. copying the
/../docker-394b73cdd59f26778a19868b9f960837914c12392177f76a54841df6f9f20586.scope
cgroup_path specified in the/ps
output above) invariably results in a:Would really appreciate help on this, thanks in advance!
The text was updated successfully, but these errors were encountered: