mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-12 16:44:05 -08:00
Expose path used to get to console to console.
Change-Id: I72386a2d4e53863da302ecc5c7e44d6c310197e0
This commit is contained in:
parent
aed1d384a9
commit
eba205fcac
|
@ -61,9 +61,11 @@ func (h *ConsolesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
data := struct {
|
data := struct {
|
||||||
RawParams url.Values
|
RawParams url.Values
|
||||||
Params map[string]string
|
Params map[string]string
|
||||||
|
Path string
|
||||||
}{
|
}{
|
||||||
RawParams: rawParams,
|
RawParams: rawParams,
|
||||||
Params: params,
|
Params: params,
|
||||||
|
Path: r.URL.Path,
|
||||||
}
|
}
|
||||||
|
|
||||||
template := templates.NewTemplateExpander(string(text), "__console_"+r.URL.Path, data, clientmodel.Now(), h.Storage)
|
template := templates.NewTemplateExpander(string(text), "__console_"+r.URL.Path, data, clientmodel.Now(), h.Storage)
|
||||||
|
|
Loading…
Reference in a new issue