Observability & OpenTelemetry
Label cardinality
Each distinct combination of label values is a separate time series, so cardinality is the product of the label value counts, and unbounded labels make storage and queries grow with users.
What you will be able to do
- Explain how label value counts multiply into the number of time series.
- Decide which labels are bounded enough for metrics and which belong in logs or traces.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Observability & OpenTelemetry
- PromQL rateIntermediate · 4 min
rate() turns a counter into a per-second increase over a window and corrects for counter resets, so the window should be longer than two scrape intervals and never…
- PromQL histogram quantileIntermediate · 4 min
histogram_quantile estimates a percentile from cumulative buckets, using the le label as each bound, so the estimate is only as precise as the bucket layout around the…
- Recording rulesIntermediate · 4 min
A recording rule runs an expensive query on a fixed schedule and stores the result as a new time series. Dashboards and alerts then read that stored result quickly and…
- Alertmanager routingIntermediate · 4 min
Alertmanager routes each alert through a tree of matchers, so the order of routes and the continue flag decide who gets paged. Testing label sets before a change…
- Grafana dashboardsAdvanced · 4 min
A Grafana dashboard reads data through panels, variables and time ranges, and each of those can change what a panel shows. Checking them first saves time during an…
- OpenTelemetry SDKAdvanced · 4 min
The OpenTelemetry API is safe to call without an SDK, but without SDK setup nothing is exported. The SDK turns the calls into real telemetry, and it must be registered…