I have the below config for a module. The only thing this module is used for is a website that returns a 403. When using http it works fine when using https it fails.
proxy_http_4xx:
prober: http
timeout: 5s
http:
valid_http_versions:
- "HTTP/1.1"
- "HTTP/2"
valid_status_codes:
- 403
method: GET
headers:
User-Agent: prometheus-blackbox_exporter
Accept-Language: en-US
no_follow_redirects: false
fail_if_ssl: false
fail_if_not_ssl: false
tls_config:
insecure_skip_verify: true
preferred_ip_protocol: "ip4"
proxy_url: http://proxy.com:1111