Feedback

Chat Icon

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

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 to true, the probe will fail if the target is not SSL. The default value is false.
  • 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 is 2xx.
  • valid_http_versions: The accepted HTTP versions (1.0, 1.1, 2.0).
  • method: The HTTP method to use. The default value is GET.
  • headers: A list of headers to send with the request.
  • ...

Example:

modules

Observability with Prometheus and Grafana

A Complete Hands-On Guide to Operational Clarity in Cloud-Native Systems

Enroll now to unlock all content and receive all future updates for free.