Interview Prep/Monitoring & Observability/Cardinality Control & Cost

What is cardinality and why is it the main cost driver for metrics?

BeginnerProductionCardinality Control & Cost
Answer

Cardinality is the number of unique time series: every unique combination of metric name and label values is a separate series. A metric with labels route (50 values) × code (10) × pod (200) is 100,000 series. Memory, storage, query time and vendor bills all scale with active series, so one careless label can multiply cost by 100x overnight.

All Monitoring & Observability questions

More on Cardinality Control & Cost