From 4e72d46ef45fcab31ba2a6b68c940763dd5d07a1 Mon Sep 17 00:00:00 2001 From: Valentin Doreau Date: Sat, 2 Nov 2024 16:07:28 +0100 Subject: [PATCH] fix: trim spaces around grafana version --- apps/grafana.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/grafana.go b/apps/grafana.go index dc99cf3..0a93c58 100644 --- a/apps/grafana.go +++ b/apps/grafana.go @@ -17,5 +17,5 @@ func Grafana(m Metrics) { 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) }