mirror of
https://github.com/onedr0p/exportarr.git
synced 2026-02-06 10:57:32 +00:00
Shared System Health collector should export zero when no health issues are present (#135)
Signed-off-by: Russell Troxel <russell.troxel@segment.com>
This commit is contained in:
parent
98e7b015e4
commit
fed7319e77
@ -59,5 +59,7 @@ func (collector *systemHealthCollector) Collect(ch chan<- prometheus.Metric) {
|
||||
s.Source, s.Type, s.Message, s.WikiURL,
|
||||
)
|
||||
}
|
||||
} else {
|
||||
ch <- prometheus.MustNewConstMetric(collector.systemHealthMetric, prometheus.GaugeValue, float64(0), "", "", "", "")
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user