Member-only story

Grafana — Metrics Introduction and Best Practices

Tony
8 min readMay 2, 2024
Pic from Grafana

What is Metrics

Metrics are quantifiable measures used to track and assess the status of a specific process, performance, or condition. They are essentially numerical data that can be analyzed over time, providing insights to make informed decisions or identify areas of improvement. For example, below is a metric data that stored as data points with a value a timestamp:

[ 178.2,  10:11:01 ]

Metrics often coupled with logs, serve as an indispensable tool for software developers and operators, offering crucial indicators about the status of applications and systems.

Data on resource usage, which captures numerical data over time, is highly useful for monitoring. While there are various types of resources, typical examples include CPU or RAM usage, the number of messages in a queue, and the count of received HTTP requests. Metrics are frequently created and seamlessly enriched with labels, attributes, or dimensions, making them efficient to search and ideal for identifying any irregularities or deviations from the norm.

A metric typically comprises the following fields:

  • Name: This field uniquely identifies the metric.
  • Data point value: The stored data varies depending on the type of metric.

--

--

Tony
Tony

Responses (1)