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.
More on Cardinality Control & Cost
How do you find which metrics and labels are driving cardinality?IntermediateWhich labels should never appear on metrics?BeginnerHow do you enforce cardinality limits so one team cannot blow up the shared system?AdvancedHow do you drop or aggregate metrics you do not need?IntermediateHow do histograms affect cardinality, and how do you control it?IntermediateHow do you estimate the monthly cost of a new metric before it ships?Intermediate