📈Metric Cardinality
Also known as High Cardinality, Label Cardinality, Cardinality Explosion
How many series a metric makes. Each mix of labels adds one.
Think of it like
Think of it like sorting socks. Sort by color and you get a few piles. Sort by owner and every sock needs its own pile.
Example
Emma adds a user ID label to her request count. She has 200,000 users, so one metric turns into 200,000 series. Her server runs out of memory.
Why it matters
Cost and speed grow with the number of series. One careless label can slow every dashboard and alert.
Definition
Common mistake
Key takeaways
- 1One series per mix. Each mix of labels is stored apart.
- 2Few values are cheap. Status codes, regions, methods.
- 3No endless labels. User IDs belong in logs.