psutil icon indicating copy to clipboard operation
psutil copied to clipboard

[Linux] Does psutil report container-level metrics?

Open mrichman opened this issue 3 years ago • 0 comments

Looking for confirmation (or a workaround) to see if psutil reports container-level metrics, or if CPU and memory reported are from the host.

My containers report memory usage via /sys/fs/cgroup/memory/memory.usage_in_bytes for example. Just looking for guidance on whether to use this metric or psutil's virtual.used metric.

I just need to be sure that I'm reporting metrics from the container, not the host. Thanks!

mrichman avatar Feb 22 '22 19:02 mrichman