Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix on how to debug blackbox exporter probes #407

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.