From 009f07e0af8e06f6c1e4e934b3939ba8ef91bc31 Mon Sep 17 00:00:00 2001 From: Valentin Doreau Date: Wed, 20 Nov 2024 10:25:30 +0100 Subject: [PATCH] fix: set the version value to 1 --- app_exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_exporter.go b/app_exporter.go index 875c93f..ae87dad 100644 --- a/app_exporter.go +++ b/app_exporter.go @@ -56,7 +56,7 @@ func main() { func RecordMetrics(m apps.Metrics) { // export the app-exporter version - m.Version.With(prometheus.Labels{"version": VERSION}) + m.Version.With(prometheus.Labels{"version": VERSION}).Set(1) for { m.Reset()