tritium icon indicating copy to clipboard operation
tritium copied to clipboard

Provide a way to reset timers on endpoints without requiring a service restart

Open schlosna opened this issue 8 years ago • 3 comments

It'd be nice to have an admin task that allows for the reset of all timers. AFAIK currently the only way to do this is to bounce the service.

schlosna avatar May 11 '17 21:05 schlosna

Might be able to expose the HdrHistogramResetOnSnapshotReservoir which is "a reservoir that resets its internal state on each snapshot (which is how reporters get information from reservoirs)"

See also https://github.com/dropwizard/metrics/issues/143 and http://taint.org/2014/01/16/145944a.html

schlosna avatar May 11 '17 21:05 schlosna

Going to close this out for now as I am not sure we want to snapshot everytime due to overhead and potential misuse via things like JMX monitors causing many snapshots during monitoring. See https://issues.apache.org/jira/browse/CASSANDRA-11752 for some background.

schlosna avatar May 11 '17 21:05 schlosna

Also see https://github.com/vladimir-bukhtoyarov/metrics-core-hdr

schlosna avatar May 11 '17 21:05 schlosna