Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus always uses last proxy_url in alertmanagers config #3636
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you try master? I believe this has already been fixed. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil: Thanks for the quick reply. I already tried, but ran into another issue (#3637). Meanwhile, I found a8cce41 to be a compiling >2.0.0 version which indeed already fixes this issue. So, sorry for the noise. The error message now states the proper port and I assume that in case of real proxies sitting there it would also work as expected:
Thanks for creating and maintaining the whole project/concept/ecosystem of Prometheus! :) |
hoffie
closed this
Dec 29, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
hoffie commentedDec 29, 2017
•
edited
What did you do?
When using
proxy_urlin thealertmanagersconfig section, prometheus does not behave as expected. It always seems to use the proxy configuration of the last entry instead of the per-entry value.What did you see instead? Under which circumstances?
Note that proxyconnect both times tries accessing port 9001
What did you expect to see?
proxy_urlshould work per-alertmanager config according to docs and scrape_configs.In above output, the alertmanager on port 8000 should be accessed by the proxy on port 8001 (not 9001).
Environment
rules.ymlconfiguration file: