mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Don't truncate build version
This commit is contained in:
parent
0a7c8e9da1
commit
107c33545b
|
@ -425,7 +425,7 @@ func tmplFuncs(consolesPath string, opts *Options) template_text.FuncMap {
|
||||||
},
|
},
|
||||||
"consolesPath": func() string { return consolesPath },
|
"consolesPath": func() string { return consolesPath },
|
||||||
"pathPrefix": func() string { return opts.ExternalURL.Path },
|
"pathPrefix": func() string { return opts.ExternalURL.Path },
|
||||||
"buildVersion": func() string { return opts.Version.Revision[:7] },
|
"buildVersion": func() string { return opts.Version.Revision },
|
||||||
"stripLabels": func(lset model.LabelSet, labels ...model.LabelName) model.LabelSet {
|
"stripLabels": func(lset model.LabelSet, labels ...model.LabelName) model.LabelSet {
|
||||||
for _, ln := range labels {
|
for _, ln := range labels {
|
||||||
delete(lset, ln)
|
delete(lset, ln)
|
||||||
|
|
Loading…
Reference in a new issue