DELAPARRA
Index
Color
NL
Category: Observability

label / tag

Explained by Updated

What is label / tag?

label / tag: A key/value dimension attached to a metric (Prometheus calls it a "label"; Datadog/StatsD call it a "tag") so you can slice and filter. In monitoring, a label or tag is a dimension attached to a metric, such as method="POST" or route="/checkout". Prometheus calls them labels; Datadog and StatsD call them tags.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about label / tag

How is label / tag used in practice?

They let you slice one metric many ways. From a single request counter, you can graph traffic per route, error rates per status code, or latency per region.

What should you keep in mind with label / tag?

Each unique combination of labels creates a separate time series, so choose labels with a small, known set of values. Route templates like /orders/{id} are fine; the actual URL with the order number is not. Unique values such as user IDs or email addresses belong in logs or traces. Consistent label names across services, such as always service and env, make dashboards and alerts much easier to build.

What does an example of label / tag look like?

http_requests_total{method="POST", route="/checkout"}

At a glance

CategoryObservability
Explained by
Updated

More Observability terms

All terms starting with L

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.