Eureka SD Configs / Using Proxy

82 views
Skip to first unread message

Martin Dilger

unread,
Sep 14, 2021, 5:41:56 AM9/14/21
to Prometheus Users
Hi,

I want to scrape Eureka Services, providing the Eureka SD Config.
Problem - the services I need to scrape reside in a different network segment, 
so I have to use a proxy only for Eureka.

I can configure the "proxy_url", but this is only used to access Eureka itself, not the targets.
Any way to work around this?

Thanks!

Brian Candler

unread,
Sep 14, 2021, 6:56:37 AM9/14/21
to Prometheus Users
There is proxy_url setting in the scrape_config section (at the top level of the job), and a separate proxy_url setting in the eureka_sd_config section.

IIUC, the first is for scraping targets and the second is for talking to the service discovery API.

Martin Dilger

unread,
Sep 14, 2021, 7:44:07 AM9/14/21
to Prometheus Users
Stupid me. thanks!
Reply all
Reply to author
Forward
0 new messages