Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux] Does psutil report container-level metrics? #2076

Closed
mrichman opened this issue Feb 22, 2022 · 2 comments
Closed

[Linux] Does psutil report container-level metrics? #2076

mrichman opened this issue Feb 22, 2022 · 2 comments

Comments

@mrichman
Copy link

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!

@giampaolo
Copy link
Owner

Also see discussion in #2100.

@giampaolo
Copy link
Owner

Closing this one as a duplicate in favor of #2100 which has more discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants