mirror of
https://github.com/prometheus/prometheus
synced 2025-01-19 22:20:51 +00:00
Merge pull request #4025 from codesome/route-prefix
Fixed pathPrefix for web pages
This commit is contained in:
commit
61accb51ac
@ -666,7 +666,7 @@ func tmplFuncs(consolesPath string, opts *Options) template_text.FuncMap {
|
||||
return time.Since(t) / time.Millisecond * time.Millisecond
|
||||
},
|
||||
"consolesPath": func() string { return consolesPath },
|
||||
"pathPrefix": func() string { return opts.ExternalURL.Path },
|
||||
"pathPrefix": func() string { return opts.RoutePrefix },
|
||||
"buildVersion": func() string { return opts.Version.Revision },
|
||||
"stripLabels": func(lset map[string]string, labels ...string) map[string]string {
|
||||
for _, ln := range labels {
|
||||
|
Loading…
Reference in New Issue
Block a user