-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Expose metrics of Caffeine caches #5320
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
Conversation
| public static final io.prometheus.client.cache.caffeine.CacheMetricsCollector CAFFEINE = new io.prometheus.client.cache.caffeine.CacheMetricsCollector() | ||
| .register(); | ||
|
|
||
| public static final io.prometheus.client.guava.cache.CacheMetricsCollector GUAVA = new io.prometheus.client.guava.cache.CacheMetricsCollector() |
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.
Where is this being used?
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 was initially planning to instruments also Guava caches, though the remaining ones we have are not very interesting, so dropped the ball.
I have removed guava now. PTAL.
|
run java8 tests |
|
run integration tests |
1 similar comment
|
run integration tests |
Motivation
Collect and expose metrics related to the Caffeine and Guava caches in brokers.
This will report the sizes, hit/misses rates and load latency.