# Issue with Proxy Configuration in Blackbox Exporter

**URL:** <https://discuss.prometheus.io/t/issue-with-proxy-configuration-in-blackbox-exporter/2026>\
**Category:** General Help/Support\
**Created:** [November 22, 2023, 3:09pm UTC](https://discuss.prometheus.io/t/issue-with-proxy-configuration-in-blackbox-exporter/2026 "2023-11-22T15:09:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohyah](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mohyah](https://discuss.prometheus.io/u/mohyah)\
**Post date:** [November 22, 2023, 3:09pm UTC](https://discuss.prometheus.io/t/issue-with-proxy-configuration-in-blackbox-exporter/2026/1 "2023-11-22T15:09:11Z")

</div>

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](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
