我有一个模块的以下配置。该模块唯一用于返回 403 的网站。使用 http 时它可以正常工作,使用 https 时它会失败。
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