What is a Timer Monitoring Metrics?

Scale Counter Graph

About

A Timer is a metrics type that sends two values:

  • an integer: the count of events during the interval (to measure throughput)
  • a duration: the interval duration (to measure latency ie Total time / count).

Example

Suppose:

  • we configure publishing at 10-second intervals
  • we saw 20 requests that each took 100ms.

Then for the first interval:

  • count = 10 seconds * (20 requests / 10 seconds) = 20 requests
  • total-time = 10 seconds * (20 * 100 ms / 10 seconds) = 2 seconds

Therefore:

  • Rate: total-time/count = 10 requests / second

Type

Background Task

As a timer reports the total time, a timer may not send any record until the task is complete.

Interval

A timer may be calculated at intervals.

Library

Micrometer

Timer timer = Timer
  .builder("my.timer")
  .description("a description of what this timer does")
  .register(registry);

vertx.setPeriodic(1000, l -> {
  timer.record(() -> {
    // Running here some operation to monitor
  });
});





Discover More
Scale Counter Graph
Monitoring Metrics - Distribution Summary

A distribution summary is a monitoring metrics type used to track the distribution of events. It is similar to a timer structurally, but records values that do not represent a unit of time. A distribution...
Scale Counter Graph
Monitoring Metrics - Gauge

A gauge is a metrics type that holds or return a single value (numeric or textual) where changes can only be observed in random order (increasing or decreasing order) or Gauge values are not...
Response Time Of System
Performance - (Latency|Response time|Running Time)

Latency is a performance metric also known as Response time. Latency (Response Time) is the amount of time take a system to process a request (ie to first response) from the outside or not, remote or...
Scale Counter Graph
Performance - (Throughput|Bandwidth|Transfer rate|Frequency)

Throughput is a performance metric showing the amount of data flow a system can support, measured by Example: hits per second, pages per second, and megabits of data per second. Improving...
Scale Counter Graph
What are the types of Metrics known as Statistical Collector?

This page is metrics as telemetry data context (realtime performance, monitoring of system) A telemetry metric is a time serie with: timestamped numerical value and optional labels Monitoring...



Share this page:
Follow us:
Task Runner