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 upCustomize URL prefix on alerts #805
Comments
This comment has been minimized.
This comment has been minimized.
|
This is how parts of the externally exposed URL are configured right now:
The last two points are problematic and need to be configurable. Now I started a PR to be able to configure the scheme, but then noticed the thing about the port as well. I thought it might be better to just allow setting the entire Prometheus URL externally as one string. We would still need the hostname and path prefix flags though, as the former is used to substitute /cc @fabxc |
This comment has been minimized.
This comment has been minimized.
|
For me the hostname I'd display is different (and a lot shorter) than the full hostname that you need to get to the prometheus server. If anything I'd like to be able to determine links automagically from the labels for all targets (in my case it's a simple concatenation), maybe we need a |
This comment has been minimized.
This comment has been minimized.
|
For that, you'd still need to be able to configure what the default externally visible hostname is, so this sounds like an orthogonal issue. Granted, just configuring the hostname might not be enough, as the external scheme, port, and endpoint of targets (if they are reachable through an LB at all) could be all different as well. That would then have to be configurable via some display relabeling options, but I see that as an orthogonal issue (and maybe too much feature bloat to put it into Prometheus TBH). |
juliusv
referenced this issue
Jun 30, 2015
Merged
Consolidate external reachability flags into one. #864
juliusv
added a commit
that referenced
this issue
Jul 3, 2015
juliusv
closed this
in
#864
Jul 3, 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. |
bluecmd commentedJun 13, 2015
While -web.hostname allows to set the hostname part of http://$host:$port, the scheme and $port is not settable per se.
The problem I'm having is that for the operator the Prometheus frontend is behind a proxy and needs to be accessed through this proxy. Currently the url is http://host:9090/prefix while I need it to be https://my.longer.hostname/prefix/