Prometheus Azure service discovery behind a corporate Proxy

28 views
Skip to first unread message

Durga Prasad Kommareddy

unread,
Apr 11, 2023, 10:54:29 AM4/11/23
to Prometheus Users
Can anyone help me how we can enable/achieve Azure service discovery behind a proxy ? 


Brian Candler

unread,
Apr 11, 2023, 11:21:28 AM4/11/23
to Prometheus Users
What have you tried so far, and what errors are you seeing?

Looking at the documentation for azure_sd_config you'll find

# Optional proxy URL. [ proxy_url: <string> ] # Comma-separated string that can contain IPs, CIDR notation, domain names # that should be excluded from proxying. IP and domain names can # contain port numbers. [ no_proxy: <string> ] # Use proxy URL indicated by environment variables (HTTP_PROXY, https_proxy, HTTPs_PROXY, https_proxy, and no_proxy) [ proxy_from_environment: <bool> | default: false ] # Specifies headers to send to proxies during CONNECT requests. [ proxy_connect_header: [ <string>: [<secret>, ...] ] ]
Exactly how you configure this depends on what sort of proxy you have, whether it requires authentication, and if so what kind.

You can find an example of proxy_connect_header here:
Reply all
Reply to author
Forward
0 new messages