mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-11-24 02:13:55 +00:00
Fix type of updated metric
This commit is contained in:
parent
6c3908e587
commit
b794963127
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue