-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
status page has absolute links instead of relative paths #148
Comments
No proxy here, but the CSS loads correctly for me on all pages, including
You said it also misbehaves without a proxy? |
My examples above all were without a proxy, using the release from github, built on your thinkpad! 😀
I'll try building |
Ok, that's very strange, as with that exact binary I'm not getting the problem you're seeing. It's a static binary, so we should be getting the same results. Are you sure that your curl doesn't use a proxy (via environment variable |
I just compiled
|
What the... Now I'm getting the same (that is, relative paths on everything except Looking more. |
Aha! In HEAD it's all absolute paths. I noticed that Alertmanager doesn't shut down when it cannot acquire it's port (ugh), so I must've still been running a HEAD Alertmanager in another terminal and didn't notice that the 0.0.4 one didn't start up correctly because it doesn't indicate that properly. Ok, so something evidently changed between 0.0.4 and HEAD there. Have you given HEAD a try? |
Also in general, this current experimental Alertmanager is being replaced by a complete rewrite, of which an Alpha is now out: https://groups.google.com/forum/#!topic/prometheus-developers/AmGnO_Sj7xI You might already want to use the new one. The old one is experimental and a horrible proof-of-concept codebase, but has seen more practical use. The new one doesn't have as many miles yet, but will be the shape of things to come and is more future-proof and properly built. |
Yep, HEAD behaves correctly. It looks like this ab93482, insofar as it fixed So, presently, |
Just to wrap this up, with
|
I noticed that the
/status
page in AlertManager has broken CSS. It ended up being because the CSS links are incorrect.We proxy to
/alertmanager
with nginx, but I confirmed it also misbehaves talking directly to AlertManager. This happens on at least 0.0.3 and 0.0.4. I don't see anything in the source that would cause/status
to be treated differently.We are running
alertmanager -config.file=some_config.conf
, not bothering to set any other command-line parameters./
,/alerts
and/silences
. CSS loads just fine.The text was updated successfully, but these errors were encountered: