fix: trim spaces around grafana version
This commit is contained in:
parent
4e8830a711
commit
4e72d46ef4
1 changed files with 1 additions and 1 deletions
|
@ -17,5 +17,5 @@ func Grafana(m Metrics) {
|
||||||
|
|
||||||
version := strings.Split(string(out), " ")[2]
|
version := strings.Split(string(out), " ")[2]
|
||||||
|
|
||||||
m.Grafana.With(prometheus.Labels{"version": version}).Set(1)
|
m.Grafana.With(prometheus.Labels{"version": strings.TrimSpace(version)}).Set(1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue