Skip to content
All concepts

Concept

Cardinality

Cardinality is the number of distinct time series a metric produces: one for every unique combination of its label values. A label with a handful of values is cheap, while a label holding user IDs or raw URLs creates a new series for each one, and memory and cost grow with it. That is why metric labels are kept to small, fixed sets, and unbounded detail goes into logs and traces.

  1. 1 metric
  2. × 14 routes × 5 statuses (succeeds)
  3. = 70 series (succeeds)
  4. + a user ID label (fails)
  5. = millions of series (fails)
Each label multiplies the series count by its number of values. One unbounded label is enough.

Where you'll see it

Nothing on the site names this term yet.