Go into the Prometheus query browser (front page in the web interface,
normally port 9090), and enter the query:
probe_success{job=~"Ping-All-Servers"}
and switch to graph mode. Is the line going up and down? Then probes are
failing.
If you want to see logs of these failures, then on the blackbox_exporter
you'll need to add --log.level=debug to its command line args.
Alternatively, if you are testing with curl, you can add "&debug=true" to
the URL. e.g.
curl -g 'localhost:9115/probe?module=foo&target=bar&debug=true'
Do this repeatedly until you see a failure, and the failure logs will be
included in the HTTP response.
Note that the blackbox exporter by default sets a deadline of 0.5 seconds
less than the scrape interval. So if you have a very short scrape interval
(say 1s) then each probe only has 0.5s to complete.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/aea3d18f-98e9-4147-a82d-16c4dc27dd84o%40googlegroups.com.