fix: trim spaces around grafana version

This commit is contained in:
Valentin Doreau 2024-11-02 16:07:28 +01:00
parent 4e8830a711
commit 4e72d46ef4
Signed by: vdoreau
GPG key ID: F3E456CF9A14098B

View file

@ -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)
} }