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
ipam: when a CiliumNode is removed, delete node label from metrics. #27713
ipam: when a CiliumNode is removed, delete node label from metrics. #27713
Conversation
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.
TIL about DeleteLabelValues
. I thought it wasn't possible. Thanks for the fix.
A few CI failures around build. Also, it would be good to put a Fixes
tag for the commit that this PR is fixing so we know where to backport this to. I'm pretty sure it's only for 1.14 so I've added that already.
e195ff4
to
4f2c3dd
Compare
/test |
0088d79
to
1aeacb9
Compare
/test |
Affects: * operator_ipam_available_ips * operator_ipam_used_ips * operator_ipam_needed_ips Which have the label "target_name", previously when a Node was deleted the metric continued to be emitted by the Prometheus exporter, leading to confusing sum() values across a cluster. Fixes changes in cilium#24776 Signed-off-by: Tom Hadlaw <tom.hadlaw@isovalent.com>
1aeacb9
to
c536bc1
Compare
/test |
Affects:
Which have the label "target_name", previously when a Node was deleted the metric continued to be emitted by the Prometheus exporter, leading to confusing sum() values across a cluster.