After a Prometheus upgrade, queries for `http_requests_total` return nothing but `http_requests_total_total` exists
BeginnerTroubleshootingPrometheus storage, memory and cardinality
Answer
Likely causes → The app's client library or an OTel-to-Prometheus conversion appended _total to a counter that already ended in _total, or a library upgrade changed naming.
Diagnose →
{__name__=~"http_requests.*"}
Fix → Rename the counter in code to http_requests (library adds _total), or set the OTel exporter/translation option correctly. Update dashboards with a temporary or query during migration.
Prevent → Pin client libraries and review metric names after upgrades.
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