HTTPS proxy_url

166 views
Skip to first unread message

Nikolay Buhryk

unread,
Mar 20, 2024, 1:31:48 PM3/20/24
to Prometheus Users
Hello

I would like to use proxy_url for my job with hosts that not directly accessible by Prometheus.

PushProx proxy service is deployed behind AWS ALB with HTTPS, but for some reason, it doesn't work, I'm always getting an error context deadline exceeded on the Prometheus side.

However proxy client on the host that I would like to scrape is able to register itself via HTTPS

When I tried to use it with HTTP, setting it in config as proxy_url: htttp://some_url to have the possibility to redirect all calls to the HTTPS by ALB it says http2: unsupported scheme

Does the proxy_url parameter support HTTPS in the URL?

Brian Candler

unread,
Mar 20, 2024, 2:14:54 PM3/20/24
to Prometheus Users
The error "http2: unsupported scheme" might be affected by this setting:

# Whether to enable HTTP2. [ enable_http2: <boolean> | default: true ]
Whether that will fix your problem I don't know.

If you've deployed PushProx behind ALB, wouldn't it be accessed simply by connecting to its external URL which points to the outside of ALB?  In that case you don't need "proxy_url" at all. That's for when you want the HTTP request to pass through an external proxy, like Squid.
Reply all
Reply to author
Forward
0 new messages