node_exporter scrape takes 25 seconds on some hosts
IntermediateTroubleshootingPrometheus scraping and targets
Answer
Likely causes → A collector is stuck: filesystem on a hung NFS mount, hwmon, or a huge textfile directory.
Diagnose →
topk(5, node_scrape_collector_duration_seconds)
node_scrape_collector_success == 0
timeout 5 stat -f /mnt/nfs || echo "mount hung"
Fix → Exclude the mount: --collector.filesystem.mount-points-exclude='^/(mnt/nfs|proc|sys)($|/)', or disable the slow collector.
Prevent → Alert on per-collector duration and failures.
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