mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-08-20 18:33:52 -07:00
Added DisksRecovering
This commit is contained in:
parent
af65f85cb3
commit
de82d1a4a4
|
@ -148,6 +148,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.DisksRecovering),
|
||||||
|
mdStat.Name,
|
||||||
|
"recovering",
|
||||||
|
)
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
disksDesc,
|
disksDesc,
|
||||||
prometheus.GaugeValue,
|
prometheus.GaugeValue,
|
||||||
|
|
Loading…
Reference in a new issue