modules: http_2xx_example: prober: http timeout: 15s http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] valid_status_codes: [] method: GET headers: Host: my.host.team Accept-Language: en-US
http_2xx_whaleapp: prober: http timeout: 15s http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] valid_status_codes: [] method: GET headers: no_follow_redirects: false fail_if_ssl: false fail_if_not_ssl: false fail_if_body_not_matches_regexp: - "HTTP OK*" preferred_ip_protocol: "ip4" tls_config: insecure_skip_verify: true
http_post_2xx: prober: http timeout: 10s http: method: POST - job_name: 'blackbox-ssl' metrics_path: /probe params: module: [http_2xx_whaleapp] static_configs: - targets: relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: blackbox-exporter:9115 - targets:| Module | Target | Result | Debug |
|---|---|---|---|
| http_2xx | my.host.team | Success | Logs |
| http_2xx | google.com | Failure | Logs |