Black Box Exporter: Advanced Configurations, Probes and Tools
58%
Advanced Configurations
We started with a simple example of the HTTP probe. However, the Blackbox Exporter allows you to customize the behavior of each probe by adding more parameters to the module configuration. This is our starting point:
modules:
http_2xx:
prober: http
http:
preferred_ip_protocol: "ip4"
And these are some of the options we can add:
timeout: The timeout for the probe.fail_if_not_ssl: If set totrue, the probe will fail if the target is not SSL. The default value isfalse.valid_status_codes: A list of valid status codes. If the status code of the response is not in this list, the probe will fail. The default value is2xx.valid_http_versions: The accepted HTTP versions (1.0, 1.1, 2.0).method: The HTTP method to use. The default value isGET.headers: A list of headers to send with the request.- ...
Example:
modulesObservability with Prometheus and Grafana
A Complete Hands-On Guide to Operational Clarity in Cloud-Native SystemsEnroll now to unlock all content and receive all future updates for free.
