Interview Prep/Monitoring & Observability/Prometheus scraping and targets

Prometheus logs `Scrape commit failed ... err="out of bounds"`

AdvancedTroubleshootingPrometheus scraping and targets
Answer

Likely causes → Samples carry timestamps older than the head block's lower bound, usually from exporters with explicit old timestamps or a host clock far behind.

Diagnose →

timedatectl status          # on Prometheus and target hosts
chronyc tracking
rate(prometheus_target_scrapes_sample_out_of_bounds_total[5m])

Fix → Fix NTP/chrony on hosts, set honor_timestamps: false for exporters with bad timestamps.

Prevent → Alert on node_timex_offset_seconds and enforce chrony everywhere.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus scraping and targets