fix: set the version value to 1

This commit is contained in:
Valentin Doreau 2024-11-20 10:25:30 +01:00
parent 6136e08bbd
commit 009f07e0af
Signed by: vdoreau
GPG key ID: F3E456CF9A14098B

View file

@ -56,7 +56,7 @@ func main() {
func RecordMetrics(m apps.Metrics) { func RecordMetrics(m apps.Metrics) {
// export the app-exporter version // export the app-exporter version
m.Version.With(prometheus.Labels{"version": VERSION}) m.Version.With(prometheus.Labels{"version": VERSION}).Set(1)
for { for {
m.Reset() m.Reset()