Observability & OpenTelemetry
Labels and cardinality
One extra label took Prometheus from 3 GB to 11 GB in an hour. Every label value multiplies the number of series, and some labels have no upper limit.
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
- GaugesBeginner · 5 min
A disk alert fires at 100% full, two minutes after the database stopped writing. A gauge held the whole story: the disk had been filling at 3 GB an hour for days.
- Histograms and latency percentilesBeginner · 5 min
A dashboard says p99 is 295 ms against a 300 ms SLO, and a release is stopped. The real p99 was about 220 ms. Percentiles from histograms are estimates, and the bucket…
- rateBeginner · 4 min
rate estimates per-second counter change over a window.
- sum byBeginner · 4 min
sum by aggregates series while keeping selected dimensions.
- histogram_quantileBeginner · 4 min
histogram_quantile estimates quantiles from classic histogram buckets.
- Vector matchingBeginner · 4 min
Vector matching pairs series by labels for binary operations.