-
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
POD Networking metrics missing with crio-1.30 and kubelet-1.30 #3577
Comments
It seems that, if I set |
Cc @kolyshkin, the author of the mentioned Pull Request. |
From a cursory look, commit eac1257 does not change the metrics being reported. If you take a look at the (removed) |
To fix the issue, I guess the criteria used for excluding network metrics (i.e. the second argument of |
I think this piece of code will not work for CRI-O. If the infra container has empty network metrics, the crio handler uses a running container in the pod to gather the metrics. Therefore, metrics must be collected from all containers to ensure that if there's a running container in the podthe necessary metrics are gathered. |
This is what I meant in the comment above -- find a way to see if infra container is used, and fix the second argument to |
cri-o should still be creating an empty cgroup for the infra container so cadvisor is aware of it, and then reporting the PID of the infra container as being one of the other containers in the pod (so network metrics can be collected). It's possible something in that broke, we should make sure cadvisor is sees the infra container cgroup (and that cri-o create it) |
@haircommander I would love to help, but I am not able to cut a release. Someone from Google (@bobbypage, is this still you?) needs to do this. |
Any updates on this? |
we still need a new release cut. @bobbypage are you able to do that or grant @iwankgb the ability? |
It seems that eac1257 breaks network metric collection. At least, with crio-1.30 with defaults.
If I apply the simple diff, I can get container metrics again:
The command used to test this:
Perhaps, cri-o does not have or keep a
POD
named container?The text was updated successfully, but these errors were encountered: