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 upAdd flag/config option to set root directory for UI #519
Comments
This comment has been minimized.
This comment has been minimized.
|
@juliusv You are more familiar with the web part. Is that doable? |
This comment has been minimized.
This comment has been minimized.
|
@yorik Would your suggestion simply require making paths relative in the frontend (in links, AJAX calls, etc.), or would you actually require the Prometheus server to respond on |
This comment has been minimized.
This comment has been minimized.
|
Any way would work for me, but probably adding /mycustomroot will be easier On 11 February 2015 at 13:07, juliusv notifications@github.com wrote:
With best regards, |
juliusv
added a commit
that referenced
this issue
Feb 14, 2015
This comment has been minimized.
This comment has been minimized.
|
@yorik See #528 - this works for me behind an nginx with a custom root. The one caveat for you would be that the Prometheus itself would have no idea that it's behind a proxy, so when it sends alerts to alertmanager (if you're using that at all), it would send its normal local URL to alertmanager for any rule introspection backlinks. That means that in Alertmanager, the "Generated By" column would not contain the URL through your proxy, but the one that Prometheus thinks it has. This could be made configurable in the future too, I guess... |
This comment has been minimized.
This comment has been minimized.
|
@juliusv, thank you so much! It works for me now. I haven't try On 14 February 2015 at 18:00, juliusv notifications@github.com wrote:
With best regards, |
This comment has been minimized.
This comment has been minimized.
juliusv
added a commit
that referenced
this issue
Mar 11, 2015
This comment has been minimized.
This comment has been minimized.
|
This is resolved with #614 and |
brian-brazil
closed this
Jun 1, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
yorik commentedFeb 9, 2015
Right now it's impossible to hide prometheus under nginx in some directory because all the links and JS are referenced to /... It would be very good if it would be possible to add some common directory via config or flag so it would be accessible via
http://<host>/<dir>/