mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-03-05 21:00:12 -08:00
Update mdadm_linux.go
changed sync_minutes_remaining to sync_time_remaining (in seconds) Signed-off-by: Frederic <fredleitenb@yahoo.de>
This commit is contained in:
parent
3179601876
commit
f21e3b547e
|
@ -105,9 +105,9 @@ var (
|
|||
[]string{"device"},
|
||||
nil,
|
||||
)
|
||||
syncMinutesRemainingDesc = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(namespace, "md", "sync_minutes_remaining"),
|
||||
"Estimated finishing time for current sync in minutes.",
|
||||
syncTimeRemainingDesc = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(namespace, "md", "sync_time_remaining"),
|
||||
"Estimated finishing time for current sync in seconds.",
|
||||
[]string{"device"},
|
||||
nil,
|
||||
)
|
||||
|
@ -231,9 +231,9 @@ func (c *mdadmCollector) Update(ch chan<- prometheus.Metric) error {
|
|||
mdStat.Name,
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
syncMinutesRemainingDesc,
|
||||
syncTimeRemainingDesc,
|
||||
prometheus.GaugeValue,
|
||||
float64(mdStat.BlocksSyncedFinishTime),
|
||||
float64(mdStat.BlocksSyncedFinishTime * 60),
|
||||
mdStat.Name,
|
||||
)
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
|
|
Loading…
Reference in a new issue