-
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
crio: only collect required metrics for infra container #3592
base: master
Are you sure you want to change the base?
crio: only collect required metrics for infra container #3592
Conversation
as we'll only use the network metrics from it Signed-off-by: Peter Hunt <[email protected]>
100eaa3
to
39f93dc
Compare
// as the rest will be discarded. | ||
if cInfo.Labels["io.kubernetes.container.name"] == "POD" { | ||
// Only include the non-non-network metrics. This way, we can tell if there are no network metrics | ||
metrics = includedMetrics.Difference(nonNetworkMetrics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would adding something like Intersect
function in MetricsSet make more sense?
/ok-to-test |
I'm not actually positive this helps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blocking per @haircommander's comment.
come to think of it, this will improve some, but it won't materially improve, we can keep or drop this, I think it techincally will save a bit of time but not really enough to notice |
as we'll only use the network metrics from it