mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
added md disks in down state
Signed-off-by: Finomosec <github@meinebasis.de>
This commit is contained in:
parent
9572e7a07b
commit
21be96076a
|
@ -131,7 +131,13 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
|
||||||
float64(mdStat.DisksTotal),
|
float64(mdStat.DisksTotal),
|
||||||
mdStat.Name,
|
mdStat.Name,
|
||||||
)
|
)
|
||||||
|
ch <- prometheus.MustNewConstMetric(
|
||||||
|
disksDesc,
|
||||||
|
prometheus.GaugeValue,
|
||||||
|
float64(mdStat.DisksDown),
|
||||||
|
mdStat.Name,
|
||||||
|
"down",
|
||||||
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
disksDesc,
|
disksDesc,
|
||||||
prometheus.GaugeValue,
|
prometheus.GaugeValue,
|
||||||
|
|
Loading…
Reference in a new issue