Hi,

I want to track how my zookeeper's latency varies over time, the metrics
currently offered by zookeeper only allow tracking of latency since startup
rather than instantaneous values. With a cumulative count of requests and
sum of their latencies, you can analyse their changes over time and
calculate average latency for a given time period.

Zookeeper already tracks the metrics needed but doesn't expose them, so I
submitted https://issues.apache.org/jira/browse/ZOOKEEPER-2093 to allow
them to be accessed via JMX so I can hook it into the rest of my monitoring.
Would it be possible to get this change reviewed?


It would be nice to use System.nanoTime and track everything as seconds
(the resolution may change again in the future) in a double, rather than
being limited to millisecond precision. Do you think it's be reasonable to
also switch the implementation over, while leaving the existing exports as
integer milliseconds for backwards compatibility?

Thanks,
Brian

Reply via email to