Skip to content

crio: only collect required metrics for infra container#3592

Closed
haircommander wants to merge 1 commit intogoogle:masterfrom
haircommander:network-metrics-optimization
Closed

crio: only collect required metrics for infra container#3592
haircommander wants to merge 1 commit intogoogle:masterfrom
haircommander:network-metrics-optimization

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 <pehunt@redhat.com>
@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

@dims dims closed this Dec 9, 2025
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.

5 participants