ipam: Register k8s sync metrics for cluster-pool#41531
Merged
pippolo84 merged 1 commit intocilium:mainfrom Sep 18, 2025
Merged
Conversation
d5467a8 to
c801cec
Compare
squeed
approved these changes
Sep 8, 2025
Member
Author
|
/test |
In cluster-pool IPAM mode the allocator creates a metrics set related to the activity of the internal trigger. Specifically, the trigger is called (and the related metrics are updated) each time the internal status of the CiliumNode, including the allocated pod CIDRs, is synced to k8s. There is however an issue, since the metrics are not correctly registered to the metrics registry, therefore they are not actually available. This commit registers the metrics so that they can be correctly exposed and visible with the `cilium-operator-generic metrics list` command. Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
c801cec to
e8af548
Compare
Member
Author
|
/test |
1 similar comment
Member
Author
|
/test |
Member
Author
|
ci-e2e-upgrade flake tracked in #41520, rerunning |
17 tasks
Member
|
Hey @pippolo84 👋 Backporter here. Kind reminder that this PR is marked for author backport. Please check if it still makes sense to backport it, or the labels should be dropped. |
Member
Author
Will take a look in the next days, thanks for the heads up! |
Member
|
Hey @pippolo84 👋 Backporter here. Kind reminder that this PR is marked for author backport. Please check if it still makes sense to backport it, or the labels should be dropped. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
In cluster-pool IPAM mode the allocator creates a metrics set related to the activity of the internal trigger. Specifically, the trigger is called (and the related metrics are updated) each time the internal status of the CiliumNode, including the allocated pod CIDRs, is synced to k8s. There is however an issue, since the metrics are not correctly registered to the metrics registry, therefore they are not actually available.
This commit registers the metrics so that they can be correctly exposed and visible with the
cilium-operator-generic metrics listcommand.In a kind cluster, with
--enable-metricspassed to the operatorBefore:
After: