Prometheus Azure Service Discovery behind a proxy server

29 views
Skip to first unread message

Durga Prasad Kommareddy

unread,
Apr 14, 2024, 8:01:59 PM4/14/24
to Prometheus Users
I have Prometheus running on a azure VM. And have few other VMs in multiple subscriptions peered with the prometheus VM/Vnet.

So i can reach the target VM metrics at http://IP:9100/metrics. But the service discovery itself is not working unless i use a public IP/internet  Prometheus service discovery and microsoft authentication.

Is there a way to enable or add proxy config just for the service discoery and microsoft authentication part ? i dont need proxy for the actual metrcis scraping because the VM can talk to all my target VMs so that'll work.  

Brian Candler

unread,
Apr 15, 2024, 3:21:49 AM4/15/24
to Prometheus Users
> Is there a way to enable or add proxy config just for the service discoery and microsoft authentication part ?

The configuration of azure sd is here:
It has its own local settings for proxy_url, proxy_connect_header etc, which relate purely to the service discovery, and not to scraping.
Reply all
Reply to author
Forward
0 new messages