Blackbox exporter debugging

From wikinotes

Probe History

If this is an intermittent failure, check out blackbox's web UI.
It stores all recent probes with their status and logs.

xdg-open http://127.0.0.1:9115

Debug logging

You can start blackbox exporter on the console.

blackbox_exporter \
  --web.listen-address=127.0.0.1:9115 \
  --config.file=/usr/local/etc/blackbox_exporter.yml
  --log.level=debug

Manual Probe

- open:  http://127.0.0.1:9115/probe?target=https://willpittman.net&module=http_2xx&debug=true
- click: 'Logs' in a failed recent probe
- see:   request logs are at the top
- see:   at the very bottom, you're looking for 'probe_success 1'