You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement request related to a problem? Please describe.
The current broker cache eviction metric, pulsar_ml_cache_evictions, measures when the cache's hasSpaceInCache triggers an eviction. There are no other cache eviction metrics right now, making it hard to gain insight into cache evictions.
Describe the solution you'd like
I would like to see metrics providing insight into the rate at which entries are getting evicted from the cache. I'm not sure if entry invalidations should also be included in this metric, but we should consider a metric for that as well.
These metrics would only be computed at the broker level.
Describe alternatives you've considered
I don't see another metric that gives insight into broker cache evictions.
Additional context
Add any other context or screenshots about the feature request here.
Activity
michaeljmarshall commentedon Jul 13, 2022
@lhotari - I think additional metrics like the one described above could help make an issue like #16054 easier to observe.
tjiuming commentedon Aug 5, 2022
@michaeljmarshall I'd like to fix the issue
michaeljmarshall commentedon Aug 24, 2022
@tjiuming - sorry, I missed your comment. I implemented the metrics today. Feel free to review the PR if you have time.
[enh][broker] Add metrics for entry cache insertion, eviction (#17248)
[enh][broker] Add metrics for entry cache insertion, eviction (apache…
[enh][broker] Add metrics for entry cache insertion, eviction (#17248)
[enh][broker] Add metrics for entry cache insertion, eviction (#17248)
[enh][broker] Add metrics for entry cache insertion, eviction (#17248)