Cardinality
Definition
Metric cardinality is the count of unique label-value combinations for a metric, each of which is stored and indexed as a separate time series.
In practice
Labels make metrics useful (requests by route, status and region), but each combination costs memory, index space and query time. Three labels with 20, 5 and 4 values give 400 series; add a histogram with 12 buckets and it is 4,800. One unbounded label, such as user id, request id or full URL, can create millions of series and take a metrics platform down.
Keep labels bounded: route templates instead of raw paths, status classes instead of free-text errors. Put high-cardinality detail in logs and traces, which are built for it. Metrics platforms enforce per-tenant series limits and drop or reject new series beyond them, so a cardinality explosion degrades one team rather than everyone.
Example
Adding user_id to http_requests_total across 200,000 active users and 50 routes jumps the metric from 250 series to millions; replacing it with plan="free|pro|enterprise" keeps it at 750.