DELAPARRA
Index
Color
NL
Category: Observability

metric

Explained by Updated

What is metric?

metric: A numeric measurement sampled over time — request rate, CPU, queue depth. Cheap to store and aggregate; great for dashboards and alerts. A metric is a number measured over time, such as requests per second, CPU usage, error count or queue length. Each measurement is small, so metrics are cheap to store and fast to query, which makes them ideal for dashboards and alerts.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about metric

How is metric used in practice?

Metrics tell you that something is wrong and roughly where. Logs and traces then tell you why.

What should you keep in mind with metric?

The main types are counters, which only go up, gauges, which go up and down, and histograms, which capture distributions such as response times. Choose a few that matter: the golden signals for each service, plus business numbers like completed orders or failed payments. Keep label values limited to avoid high cardinality, and name metrics consistently so they are easy to find later.

What does an example of metric look like?

http_requests_total{method="GET",status="200"} 48213

At a glance

CategoryObservability
Explained by
Updated

More Observability terms

All terms starting with M

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.