alertmanager icon indicating copy to clipboard operation
alertmanager copied to clipboard

-web.external-url does it work?

Open mokshpooja opened this issue 10 years ago • 11 comments

Hi Guys,

I am using proxy thus both prometheus and alert manager are both behind proxy. I used -web.external-url in prometheus which is working fine but this doesn't seem to be happening for alert manager. I can reach the main page alert page but not the css or any other styling files thus i see a very primitively styled page.

mokshpooja avatar Apr 26 '16 15:04 mokshpooja

Hi, this should have gotten fixed in https://github.com/prometheus/alertmanager/pull/289, but the newest release doesn't contain that fix yet (0.1.1 is from March 15, the fix is from March 30).

/cc @fabxc for maybe doing a release already, but I know he's quite busy right now...

juliusv avatar Apr 26 '16 16:04 juliusv

Closing the issue here, since most likely this is fixed in master.

juliusv avatar Apr 26 '16 16:04 juliusv

buildng from master works. Thanks. Hope the release is out soon.

mokshpooja avatar Apr 27 '16 13:04 mokshpooja

@juliusv please see prometheus/prometheus#1191 and @chancez's suggestion. -web.external-url currently doesn't solve all cases and should we change it, we shouldn't release it for AM in the first place.

fabxc avatar Apr 27 '16 13:04 fabxc

Just tried out 0.7.0-rc.0 and it's failing because the main page has an absolute reference to "/script.js".

jcollie avatar May 19 '17 18:05 jcollie

The path is correct. I just downloaded and ran the release candidate, and experienced no failure.

stuartnelson3 avatar May 19 '17 21:05 stuartnelson3

The path "/script.js" is only correct if you have AlertManager at the root of the URL path. If, like me, you are using a proxy in front of AlertManager to put it into a subdirectory it's not correct. I have the proxy set up so that https://www.example.com/prometheus forwards to my Prometheus installation and https://www.example.com/alertmanager forwards to my AlertManager installation.

jcollie avatar May 19 '17 22:05 jcollie

I can confirm this is also happening here with v0.7.0-rc.0

psalaberria002 avatar May 20 '17 01:05 psalaberria002

Ah, thanks for the clarification

stuartnelson3 avatar May 20 '17 04:05 stuartnelson3

@mxinden I think this should be added to v0.7 Milestone. It should be an easy fix.

psalaberria002 avatar May 22 '17 11:05 psalaberria002

@psalaberria002 @jcollie We have fixed this with #836. You can try out current master or wait a little. We are planning to release again hopefully tomorrow. Let me know if you are having any further issues with this.

mxinden avatar Jun 07 '17 20:06 mxinden