How do you reduce observability costs without losing incident visibility?
IntermediateProductionCardinality Control & Cost
Answer
- Metrics: drop unused series, aggregate per-pod data, longer scrape intervals for slow metrics.
- Logs: drop debug in prod, sample high-volume success logs, tier retention.
- Traces: tail sampling that keeps errors and slow requests.
- Retention: short hot retention, cheap object storage for long term.
- Show teams their cost (showback) per namespace or service.
Keep full fidelity on SLIs, errors and anything an alert uses.
More on Cardinality Control & Cost
What is cardinality and why is it the main cost driver for metrics?BeginnerHow 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?Intermediate