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.
More on Prometheus scraping and targets
A target shows `DOWN` on `/targets` with `Get "http://10.0.3.14:9100/metrics": context deadline exceeded`BeginnerTarget is `DOWN` with `server returned HTTP status 401 Unauthorized`BeginnerTarget shows `server returned HTTP status 403 Forbidden` when scraping kubelet / cAdvisorIntermediateTarget is `DOWN` with `connect: connection refused`BeginnerTarget shows `x509: certificate signed by unknown authority`IntermediateTarget shows `x509: certificate is valid for app.svc, not 10.0.4.22`Intermediate