-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Add type label to the identity metric #19999
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
Add type label to the identity metric #19999
Conversation
/test |
daemon/cmd/daemon.go
Outdated
@@ -475,12 +475,12 @@ func NewDaemon(ctx context.Context, cancel context.CancelFunc, epMgr *endpointma | |||
} | |||
|
|||
identity.IterateReservedIdentities(func(_ identity.NumericIdentity, _ *identity.Identity) { | |||
metrics.Identity.Inc() | |||
metrics.Identity.WithLabelValues("reserved").Inc() |
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.
Do you know if these metrics will double-count vs. the AllocateIdentity()
defer()
?
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.
I don't think so -- in my testing I did not see reserved identities being double counted (installed prometheus + grafana and plotted things). I'll try to look in the code to see the code path of AllocateIdentity
if it gets called for reserved ones.
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.
Looked at the code and I was able to trace it to https://github.com/cilium/cilium/blob/master/pkg/identity/reserved.go#L49-L51. Given this I don't think they get allocated via the normal AllocateIdentity()
method.
500e932
to
34af8ca
Compare
/test |
34af8ca
to
d58a585
Compare
Signed-off-by: Vlad Ungureanu <ungureanuvladvictor@gmail.com>
Signed-off-by: Vlad Ungureanu <ungureanuvladvictor@gmail.com>
d58a585
to
60579d3
Compare
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.
This makes me wonder about the "multi_cluster" identities and how we might understand their effect on the system. But these LGTM.
Added |
/test Job 'Cilium-PR-K8s-1.23-kernel-net-next' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
ConformanceKind1.19 failure is #20034 |
/test-1.23-net-next Job 'Cilium-PR-K8s-1.23-kernel-net-next' failed: Click to show.Test Name
Failure Output
If it is a flake and a GitHub issue doesn't already exist to track it, comment |
|
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.
LGTM
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.
LGTM 💯
/test-1.23-net-next |
All reviews are in, only ConformanceKind was failing but that was due to a breakage in the tree. LGTM, merging. |
Signed-off-by: Vlad Ungureanu ungureanuvladvictor@gmail.com