From b794963127d5fcb95b2f3d8fb8057752a16af255 Mon Sep 17 00:00:00 2001 From: Robert Jacob Date: Fri, 3 Jul 2020 16:46:05 +0200 Subject: [PATCH] Fix type of updated metric --- internal/collector/collector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/collector/collector.go b/internal/collector/collector.go index efa8574..d76d0cc 100644 --- a/internal/collector/collector.go +++ b/internal/collector/collector.go @@ -201,7 +201,7 @@ func (c *NetatmoCollector) collectData(ch chan<- prometheus.Metric, device *neta return } - c.sendMetric(ch, updatedDesc, prometheus.CounterValue, float64(date.UTC().Unix()), moduleName, stationName) + c.sendMetric(ch, updatedDesc, prometheus.GaugeValue, float64(date.UTC().Unix()), moduleName, stationName) if data.Temperature != nil { c.sendMetric(ch, tempDesc, prometheus.GaugeValue, float64(*data.Temperature), moduleName, stationName)