Fix type of updated metric

This commit is contained in:
Robert Jacob 2020-07-03 16:46:05 +02:00
parent 6c3908e587
commit b794963127
1 changed files with 1 additions and 1 deletions

View File

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