Prometheus OOM & TSDB Cardinality Error Diagnostics (10)
Identify why Prometheus crashes at 4.5-8+ KB/series during 2-hour compactions, why pod churn breaks postings caches, and how VictoriaMetrics cuts RAM 80%+.
10 Technical Triage Guides
Prometheus Compaction OOM 137
Prometheus buffers raw samples in a 2-hour head block before compacting them onto disk, causing 1.5x memory spikes that trigger Linux OOM Exit 137 on 4-16 GB VPS.
Pod Churn Cardinality Spike
Rolling deployments, CronJobs, and HPA autoscaling create thousands of short-lived pod and container_id label sets every hour, poisoning TSDB index memory.
Prometheus WAL Replay Stall
After an OOM kill, Prometheus must replay gigabytes of uncompacted WAL files before serving queries or scraping targets, often triggering repeated watchdog kills.
Grafana Range-Query Timeout
Querying 30-day or 6-month rate() windows across millions of active series stalls Prometheus block iterators and triggers Grafana 504 Gateway Timeouts.
Remote-Write Queue Drops
Using a full Prometheus server purely as a remote_write forwarder wastes gigabytes of RAM on local head blocks and drops samples whenever network latency spikes.
Grafana Cloud $8/1k Shock
Metered SaaS metrics platforms charge $8+ per 1,000 active series above free tiers—meaning 500k to 2M Kubernetes series easily cost $4,000 to $16,000 every month.
TSDB Multi-Year Disk Bloat
Storing 12 to 36 months of 15s Prometheus metrics consumes 2.0-2.8 bytes/sample plus bloated index files—exhausting expensive cloud block volumes rapidly.
IndexDB EMFILE Too Many Files
Default Linux systemd and Docker file-descriptor limits (1024-4096) cause VictoriaMetrics to abort part merges and HTTP scrapes with "too many open files".
maxUniqueTimeseries Exceeded
Wide Grafana template-variable queries like {namespace=~".*"} hit the default -search.maxUniqueTimeseries=300000 guardrail and return HTTP 422 errors.
Histogram Bucket Bloat
A single Envoy, Istio, or NGINX HTTP latency histogram with 20 le buckets multiplies every route, status code, and pod into 22x active time series.