Interview Prep/Monitoring & Observability/Prometheus scraping and targets

Target is `DOWN` with `connect: connection refused`

BeginnerTroubleshootingPrometheus scraping and targets
Answer

Likely causes → Nothing listens on that port, the app binds to 127.0.0.1 only, or the exporter crashed.

Diagnose →

ss -lntp | grep 9100
systemctl status node_exporter
curl -v http://<ip>:9100/metrics

Fix → Start the exporter, bind to 0.0.0.0:<port> (e.g. --web.listen-address=:9100), or correct the port in the scrape config / Service.

Prevent → Run exporters under systemd with Restart=always; alert on up == 0 for 5m.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus scraping and targets