What do you monitor about Prometheus itself?
IntermediateScenarioPrometheus and PromQL at Scale
Answer
Situation read → If the monitor is unhealthy, everything downstream is suspect.
What I'd do → Watch these and alert on thresholds:
- Ingestion:
rate(prometheus_tsdb_head_samples_appended_total[5m]), series countprometheus_tsdb_head_series. - Scrape health:
up,scrape_duration_seconds,prometheus_target_scrapes_exceeded_sample_limit_total. - Rule evaluation:
prometheus_rule_evaluation_failures_total,prometheus_rule_group_last_duration_secondsversus the interval. - Remote write:
prometheus_remote_storage_samples_pending,..._failed_total, shard lag. - Storage:
prometheus_tsdb_compactions_failed_total, disk free for the data dir. - Alert delivery:
prometheus_notifications_dropped_total.
Why → These cover the whole path: collect, store, evaluate, notify.
Interview tip → Rule groups that take longer than their interval silently skip evaluations.
More on Prometheus and PromQL at Scale
Prometheus memory has grown to 60 GB and keeps climbing. How do you find the cause?IntermediateA developer added `user_id` as a metric label. What is the problem and what do you advise?BeginnerYour dashboard shows the average of per-pod p99 latencies. Why is it wrong, and how do you compute a correct fleet-wide p99?IntermediateChoose histogram bucket boundaries for a service with a 300 ms latency SLO.AdvancedYou have 500 short-lived batch jobs that finish before Prometheus can scrape them. How do you capture their metrics?IntermediateYour EC2 fleet autoscales constantly. How do you keep Prometheus targets up to date?Intermediate