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

crio: only collect required metrics for infra container #3592

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haircommander
Copy link
Contributor

as we'll only use the network metrics from it

as we'll only use the network metrics from it

Signed-off-by: Peter Hunt <[email protected]>
@haircommander
Copy link
Contributor Author

@iwankgb @bobbypage @mrunalp @kolyshkin PTAL

// 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)
Copy link

@bitoku bitoku Sep 23, 2024

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?

@iwankgb
Copy link
Collaborator

iwankgb commented Oct 4, 2024

/ok-to-test

@haircommander
Copy link
Contributor Author

I'm not actually positive this helps
/hold
for now

Copy link
Collaborator

@iwankgb iwankgb left a 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.

@haircommander
Copy link
Contributor Author

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

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

Successfully merging this pull request may close these issues.

4 participants