What is cardinality in the context of metrics?
BeginnerConceptObservability Fundamentals & Signals
Answer
Cardinality is the number of unique time series, where a series is a metric name plus a unique set of label values. http_requests_total with 5 methods x 10 paths x 6 status codes x 20 pods = 6,000 series.
Each series costs memory in the Prometheus head block (roughly a few KB), so unbounded labels (user ID, request ID, full URL, email) can take Prometheus down.
More on Observability Fundamentals & Signals
What is the difference between monitoring and observability?BeginnerWhat are the "three pillars" of observability, and what is the fourth signal people now add?BeginnerWhen would you reach for metrics, logs, traces or profiles during an incident?BeginnerWhat are the four Prometheus metric types?BeginnerWhy should you never use a gauge to count requests?BeginnerHistogram vs summary: what is the real difference, and which do you choose?Intermediate