You should only see probe_success=0 or probe_success=1.
To make result_code 302 return probe_success=1 and everything else return
probe_success=0, you configure
<https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md>
a "module" in blackbox_exporter appropriately.
modules:
http_must_redirect:
valid_status_codes: [302]
method: GET
If you want to check the response to see that the redirect sends you to a
particular URL, then use fail_if_header_not_matches: on the Location header.
--
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/369d8b6c-8990-4072-b7f5-bafecd20c9d3%40googlegroups.com.