How to run Prometheus and Alertmanager reliably at scale without OOM crashes or missing critical outages.
The #1 cause of Prometheus crashes is High Cardinality - metrics with label values that have millions of unique combinations (e.g., user_id, order_id, ip_address).
In Prometheus web UI:
Navigate to Status -> TSDB Status to inspect:
scrape_configs:
- job_name: 'api-service'
metric_relabel_configs:
- action: labeldrop
regex: '(user_id|trace_id|session_token)'
A single Prometheus instance cannot scale indefinitely. When series exceed 5 million:
Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.