Monitoring Metrics - Timer
Table of Contents
1 - 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).
2 - Articles Related
3 - 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