Monitoring Metrics - Timer

About

A Timer is a metrics type that send two value (two time series):

  • the count of timed events (to measure throughput)
  • and the total time of all events (to measure latency ie Total time / count).

As a timer reports the total time, a timer may not send any record until the task is complete. For long running task such as a background process, a long duration timer that sends the actual duration may be used.

Example

Suppose we configure publishing at 10 second intervals and we saw 20 requests that each took 100ms. Then for the first interval:

  • count = 10 seconds * (20 requests / 10 seconds) = 20 requests
  • totalTime = 10 seconds * (20 * 100 ms / 10 seconds) = 2 seconds
  • Rate: totalTime/count = 10 requests / second

Powered by ComboStrap