upbound_uxp: filter one pod per replicaSet (ECOINT-108) #2606
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
what does this PR do?
This PR introduces a feature flag (filter_one_pod_per_replica) to allow filtering of only one pod per ReplicaSet for metric collection in Kubernetes environments. This change helps avoid duplicate metrics when multiple pods from the same ReplicaSet are running on the same node. The default behavior is to collect metrics from all pods.
motivation
The motivation for this change is to enhance metric collection efficiency in environments where high availability is configured with multiple pods per ReplicaSet, avoiding the collection of duplicate data from pods running on the same node.
Review checklist
no-changelog
label attachedAdditional Notes