Skip to content

Commit

Permalink
docs: fix on how to debug blackbox exporter probes (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgarel authored Oct 16, 2024
1 parent c8df4b7 commit 099eead
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/observability.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ curl "http://localhost:9115/probe?module=icmp&app=ovh1&target=ov1.openfoodfacts.

If you have a probe failing, you can test what blackbox exporter is reporting by:

* connecting in ssh to monitoring VM with a port redirection for 9115:
`ssh -L 9115:localhost:9115 <server-name> -N`
* connecting in ssh to monitoring VM with a port redirection for 9115 to the container port 9115
`ssh -L 9115:<VM internal ip>:9115 <server-name> -N`

currently, this should be `ssh -L 9115:10.1.0.203:9115 ovh1.openfoodfacts.org -N`
* this gives you access to blackbox exporter on port http://127.0.0.1:9115
* there you have a table with current status for different probes and log of the probes, which should help you understand.
* you can test the probe with:
http://127.0.0.1:9115/probe?module=http_probe&target=https%3A%2F%2FMYSERVER.TLD/MY/PATH
* you can also add a "debug=true" parameter to the url to see the debug output
* you might be interested in looking at the `probe_success` and `probe_http_status_code` value

You can try to reproduce the same probe with curl.
You can try to reproduce the same probe with curl.

0 comments on commit 099eead

Please sign in to comment.