Wondering how the cool kids are configuring their Blackbox probe timeouts these days?
With the latest 0.7.0 release of the Blackbox exporter comes a new way to configure timeouts for probes.
Previously, timeouts for probes would be set individually via configuration of the Blackbox exporter itself.
Now the timeout for probes may be set in Prometheus.
In practice this works by configuring
scrape_timeout in the
scrape_config to automatically determine the probe timeout. Note that it is slightly reduced to allow for network delays.
This can be further limited by the
timeout in the Blackbox exporter config file of the individual probe. If neither is specified, it defaults to 10 seconds.
Under the covers this works via the
X-Prometheus-Scrape-Timeout-Seconds HTTP header which Prometheus sends with each scrape.
Need help configuring Blackbox exporter and Prometheus? Contact us.