Interview Prep/Monitoring & Observability/Prometheus scraping and targets

Blackbox exporter probe shows `probe_success 0` but the site loads in a browser

IntermediateTroubleshootingPrometheus scraping and targets
Answer

Likely causes → The module expects a different status code, follows no redirects, fails on IPv6 preference, or the probe target is passed as __address__ instead of __param_target.

Diagnose →

curl 'http://blackbox:9115/probe?module=http_2xx&target=https://example.com&debug=true'

The debug output shows each step and the failing reason.

Fix → Use correct relabeling (__address__ → __param_target, then __address__ = blackbox host), set preferred_ip_protocol: ip4, and valid_status_codes: [200, 301, 302] if needed.

Prevent → Keep a debug probe link in each alert's annotations.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Prometheus scraping and targets