UI ignores route prefix on redirect to home page. #12597
Unanswered
scott-david-walker
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It looks like you should use --web.external-url=https://myurl.com/sys/metrics |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What did you do?
When you make use of the route prefix it gets ignored by the UI and redirects immediately to /graph page.
We have set external url to our hostname E.G.
https://myurl.com
and route prefix to/sys/metrics
but when going to https://myurl.com/sys/metrics it redirects to /graph where nothing is available. Whereas if we go directly to https://myurl.com/sys/metrics/graph then everything works as expected.We think it's an issue with the code below where the get route for the prefix might be overwritten by the next get route which is always applied
prometheus/web/web.go
Lines 354 to 374 in 94edd08
What did you expect to see?
Going to a route with a prefix should redirect to
{prefix}/graph
What did you see instead? Under which circumstances?
Going to a route with a prefix redirects to
/graph
without prefix applied and therefore redirects to an invalid routeSystem information
No response
Prometheus version
Prometheus configuration file
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions