Histogram metrics alone account for 60% of all series
AdvancedTroubleshootingPrometheus storage, memory and cardinality
Answer
Likely causes → Classic histograms with many buckets (×labels). 20 buckets × 50 routes × 10 status codes × 30 pods = 300k series for one metric.
Diagnose →
topk(10, count by (__name__)({__name__=~".+_bucket"}))
Fix → Cut buckets to what your SLOs need, drop the le buckets you never query, remove status from histograms (keep it on counters), or migrate to native histograms (--enable-feature=native-histograms, one series per histogram).
Prevent → Standard bucket presets in a shared instrumentation library.
More on Prometheus storage, memory and cardinality
Prometheus pod restarts with `OOMKilled` every few hoursIntermediateA query fails with `query processing would load too many samples into memory in query execution`IntermediateHead series jumped from 2M to 9M after a deployAdvancedPrometheus logs `opening storage failed: ... unexpected EOF` / `corruption in segment` and won't startAdvancedPrometheus is in CrashLoopBackOff with `no space left on device`BeginnerPrometheus takes 15 minutes to become ready after a restartAdvanced