There is this method where I can get the number of events ( Throughput ) or Averagelatency by calling this:
ProbeRuntimeMBean probe = ((ProbeRuntimeMBean) handback);
double metric = probe.getMetric().doubleValue();
My question is , when I get the number, what is the unit of time it refers to? millisecond? microsecond?
The java doc for getMetric() method shows like "This method returns the current monitoring metric value. This will return null if no monitoring metrics have been calculated or received yet." Returns a Number representing the current monitoring metric value. Hope this is useful.
Latency values are returned in microseconds. Since throughput is the number of events, that value represents the number of events in the throughput interval. It is an outage in our javadocs that it does not mention the unit, we will fix that asap.