How do you decide retention periods for metrics?
BeginnerProductionCardinality Control & Cost
Answer
By use case: incident debugging needs full resolution for 1–2 weeks; SLO reporting needs 30–90 days; capacity planning and year-over-year trends need 13 months of downsampled or recorded series. Keep raw high-cardinality series short, keep aggregated recording-rule series long. Compliance rarely applies to metrics but does to logs.
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