Prometheus logs `Error reloading config ... "job_name" is duplicated` and keeps the old config
BeginnerTroubleshootingPrometheus scraping and targets
Answer
Likely causes → Two scrape jobs share a job_name (often from merged include files or Helm additionalScrapeConfigs).
Diagnose →
promtool check config prometheus.yml
grep -n 'job_name' prometheus.yml | sort -k3 | uniq -d -f2
Fix → Rename one job; job names must be unique across all scrape_configs and scrape_config_files.
Prevent → Gate merges with promtool check config; alert on failed reloads.
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