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 up2.3.0 breaks our reverse proxy setup #4241
Comments
This comment has been minimized.
This comment has been minimized.
|
Hmm, #4025 is incorrect and should be reverted. The route prefix is internal to the proxy<->Prometheus, and shouldn't affect how html is rendered. |
brian-brazil
added
kind/bug
priority/P1
component/ui
labels
Jun 8, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The commit you mentioned doesn't fix #4025 for our setup. |
This comment has been minimized.
This comment has been minimized.
|
#4031 needs to be evaluated separately. |
This comment has been minimized.
This comment has been minimized.
|
#4256 fixes this. |
brian-brazil
closed this
Jun 15, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
dominikschulz commentedJun 8, 2018
•
edited
Bug Report
What did you do?
We upgraded our Prometheus instances from 2.2.1 to 2.3.0.
What did you expect to see?
The Webinterface should still be working as before.
What did you see instead? Under which circumstances?
All static assets failed to load due to a wrong path prefix.
Environment
We run several Prometheus instances behind an nginx reverse proxy that handles authentication (among other duties).
Our Prometheus instances are available on URLs like these (where "foo" and "bar" are the names of different instances):
We are running Prometheus with these (relevant) commandline arguments:
--web.external-url=https://www.example.org/p8s/foo--web.route-prefix=/Our nginx.conf contains a location stanza for each Instance like this:
Note: The trailing slash will remove the leading part of the request URL matching the location name (i.e.
https://www.example.org/p8s/foo/graphwill hit the backend ashttp://<backend>/graph). See proxy_pass. This is not strictly necessary for Prometheus but makes much sense with the other services also serviced by this nginx and makes our lives a lot easier.This setup worked perfectly fine with 2.2.x but broke with 2.3.0.
Example static asset URL with 2.2.1:
https://www.example.org/p8s/foo/static/vendor/js/jquery.min.jsExample static asset URL with 2.3.0:
https://www.example.org/static/vendor/js/jquery.min.jsI was suspecting some relation to #4025
but couldn't spot an issue with that, yet.