-
Notifications
You must be signed in to change notification settings - Fork 476
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
[SPIRE Agent] add telemetry around LRU cache entry operations #4335
[SPIRE Agent] add telemetry around LRU cache entry operations #4335
Conversation
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
9681c60
to
2270bc9
Compare
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
2ec9ca8
to
ab32e25
Compare
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
6b2556f
to
1a7e20c
Compare
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
d02d89e
to
3dc6d1a
Compare
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
I think that's the last of my comments. Eager to see what the maintainers and rest of the community think :) |
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.
Thanks for the contribution @hugordon7 and for the review @amoore877!
@hugordon7 we need a DCO on the commit in order to merge it. You can read more about DCO here, you can use |
1b81e7e
to
c5de92a
Compare
Signed-off-by: gordonhu7 <hu.gordon@hotmail.com>
c5de92a
to
6d8851b
Compare
…#4335) * [SPIRE Agent] add telemetry around LRU cache entry operations Signed-off-by: gordonhu7 <hu.gordon@hotmail.com> Co-authored-by: gordonhu7 <hu.gordon@hotmail.com> Co-authored-by: Evan Gilman <evan@spirl.com> Signed-off-by: Neniel <11655196+Neniel@users.noreply.github.com>
…#4335) * [SPIRE Agent] add telemetry around LRU cache entry operations Signed-off-by: gordonhu7 <hu.gordon@hotmail.com> Co-authored-by: gordonhu7 <hu.gordon@hotmail.com> Co-authored-by: Evan Gilman <evan@spirl.com> Signed-off-by: Neniel <11655196+Neniel@users.noreply.github.com>
Affected functionality
Adds metrics around LRU cache entry operations. On every LRU cache entry add, update, and removal, a counter is incremented. After each call to update entries and SVIDs, the total size of the entry and SVID map is reported.
Also renames the ExpiresAt field to SVIDExpiresAt in the StaleEntries struct and adds an additional log field entry_id to a log.
Description of change
Additional observability into LRU cache entry operations and memory usage.
Which issue this PR fixes
N/A