-
Notifications
You must be signed in to change notification settings - Fork 23
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
Additional metrics #321
Additional metrics #321
Conversation
6f0f7a3
to
629c025
Compare
d1d0b07
to
055eef4
Compare
Works on my computer™ 😉 |
e3ea79d
to
2506b87
Compare
Addressed that now @alexsnaps - I think I must have been confusing things with the original implementation where I was having difficulty with the boxed function |
_removal_cause: RemovalCause, | ||
) { | ||
gauge!("cache_size").decrement(1); | ||
if let Ok(writes) = value.pending_writes() { |
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.
You can't call that pending_writes
... while the value got evicted from the cache, it's still in the queue! But now, when it'll get consumed, it won't have pending writes anymore... You can "just" call no_pending_writes
on it. if it had none, then you can ignore this eviction, but if we start evicting entries with pending writes, it probably means you need to review your cache size
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.
Right gotcha, so instead of a histogram of the number of pending writes it'll be a (metrics) counter that increments in the case that we evict an entry with no_pending_writes().not()
2506b87
to
4efcfbc
Compare
Changes
liveness_latency
histogram metric,cache_size
gauge andbatcher_size
gaugedatastore_partitioned
metric always presentdatastore_latency
metrics if the timing data is presentredis_cached
we aggregate thedatastore
span calls by the batcher flushesBox
, enabling different consumer functions to be providedbatcher_flush_size
histogrameviction_listener
to the cache to allow us to decrement thecache_size
as well as to monitor theevicted_pending_writes
in a histogramcounter_overshoot
histogram for when weadd_from_authority
and which pushes us over the counter max val