Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Proxy support #95

Open
michag86 opened this issue Mar 14, 2024 · 0 comments
Open

HTTP Proxy support #95

michag86 opened this issue Mar 14, 2024 · 0 comments

Comments

@michag86
Copy link

Can I use ndt7-prometheus-exporter behind a http proxy?
I tried it with setting the environment https_proxy, http_proxy, HTTPS_PROXY and HTTP_PROXY but nothing worked:

My docker-compose.yml looks like this:

version: "3"

services:
  ndt-exporter:
    image: ndt7-prometheus-exporter
    ports:
      - 9191:8080
    environment:
      http_proxy: http://myproxy.com:3128
      https_proxy: http://myproxy.com:3128
      HTTP_PROXY: http://myproxy.com:3128
      HTTPS_PROXY: http://myproxy.com:3128
    command:
      - -timeout
      - 3s
      - -server
      - ndt.mydomain.com

It always looks like it trys to connect directly:

download failed: dial tcp 123.x.x.x:443: i/o timeout
upload failed: dial tcp: lookup ndt.mydomain.com: i/o timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant