Skip to content

Conversation

aanm
Copy link
Member

@aanm aanm commented Aug 26, 2025

Replace Add(1) with Set(1) for all feature metrics in both daemon and operator components. These metrics represent boolean feature states that should be set to 1 when enabled, not incremented. Using Add(1) causes metrics to accumulate over time and produce incorrect values when the metrics are updated multiple times, leading to misleading monitoring data.

Replace Add(1) with Set(1) for all feature metrics in both daemon
and operator components. These metrics represent boolean feature
states that should be set to 1 when enabled, not incremented.
Using Add(1) causes metrics to accumulate over time and produce
incorrect values when the metrics are updated multiple times,
leading to misleading monitoring data.

Signed-off-by: André Martins <andre@cilium.io>
@aanm aanm added release-note/misc This PR makes changes that have no direct user impact. needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Aug 26, 2025
@aanm aanm requested a review from a team as a code owner August 26, 2025 12:23
@aanm aanm requested a review from derailed August 26, 2025 12:23
@aanm aanm enabled auto-merge August 26, 2025 12:23
@aanm
Copy link
Member Author

aanm commented Aug 26, 2025

/test

@aanm aanm added this pull request to the merge queue Aug 26, 2025
Merged via the queue into main with commit ebd4919 Aug 26, 2025
427 of 430 checks passed
@aanm aanm deleted the pr/fix-feature-metrics branch August 26, 2025 16:55
@viktor-kurchenko viktor-kurchenko mentioned this pull request Sep 2, 2025
18 tasks
@viktor-kurchenko viktor-kurchenko added backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. and removed needs-backport/1.18 This PR / issue needs backporting to the v1.18 branch labels Sep 2, 2025
@github-actions github-actions bot added backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. and removed backport-pending/1.18 The backport for Cilium 1.18.x for this PR is in progress. labels Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-done/1.18 The backport for Cilium 1.18.x for this PR is done. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants