psutil
psutil copied to clipboard
[Linux] Does psutil report container-level metrics?
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!