Issue with Proxy Configuration in Blackbox Exporter
mhmdyah opened this issue · 1 comments
Hello Prometheus Community,
I’m facing an issue with configuring a proxy in the Blackbox Exporter.
Despite setting the proxy_url parameter and enabling proxy_from_environment in the blackbox.yml file, the Blackbox Exporter still fails to use the proxy, resulting in timeout errors.
Additionally, I have set the http_proxy and https_proxy environment variables in the Docker Compose file, and confirmed their presence in the running container.
Any insights or suggestions to troubleshoot this issue would be greatly appreciated.
Thank you in advance!
balckbox.yml file:
modules:
http_2xx:
prober: http
timeout: 5s
http:
proxy_url: “http://proxy-site:3128/”
proxy_from_environment: true
skip_resolve_phase_with_proxy: true
valid_http_versions: [HTTP/1.1, HTTP/2]
valid_status_codes: [200, 204] # List of HTTP status codes considered valid.
method: GET
tls_config:
insecure_skip_verify: true
looking it debug logs might help, adding a debug=true
parameter will return debug information for that probe.
unforutenntly in most issues like this we have a config issue where either blackbox can't reach proxy or proxy configs are not making it's way to blackbox exporter.
For questions/help/support please use our community channels. There are more people available to potentially respond to your request and the whole community can benefit from the answers provided.