-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Missing metrics in cgroup
v2
#3062
Comments
@ysksuzuki pinging you here to see if this is related to #3026 that was recently closed, and I think the fix is awaiting release. |
Is there any update on this? We have the same problem running |
Is there any update? We are also missing these metrics when using cgroup v2. |
Spent some time looking into the code, it seems the underlying crun library doesn't populate cadvisor/container/libcontainer/handler.go Line 801 in fdd3d91
A possible solution would be to place ret.Memory.MaxUsage = s.MemoryStats.Stats["peak"] in the if cgroups.IsCgroup2UnifiedMode() block. Don't have a V2 system handy right now to test with :(
|
Went into the rabbit hole a bit further. It seems |
I'm beginning to fix this in opencontainers/runc#4038 |
I think this fix made it's way into runc 1.11.0. Since then, I've seen that COS-113 mentions runc 1.12.0. And so does cAdvisor 0.49.0. But I guess the fix suggested here would still need to be implemented before the metric would be exposed by cAdvisor. Would anyone know the status of this? |
This seems to be fixed. I've seen both |
@mindw Thanks for digging. I stumbled across your comments while trying to measure the peak memory use of cert-manager components. The default WSL2 kernel is v5.15 but happily a new WSL2 v6 kernel is soon to be released so I'll report back when that is available. |
This might be related to #3026 (which I am not sure has been released yet).
On nodes running
cgroup
v1 the following metrics such ascontainer_cpu_cfs_throttled_*
are returned. Ifcadvisor
is run on nodes withcgroup
v2 enabled those metrics are not returned.There could be others but these are the ones I noted when attempting to troubleshoot an issue. To verify I ran the latest of the 0.39.x release and 0.43.x and both exhibited the same behavior.
The text was updated successfully, but these errors were encountered: