|
|
@ -186,6 +186,11 @@ func (c *filesystemCollector) Update(ch chan<- prometheus.Metric) error { |
|
|
|
c.deviceErrorDesc, prometheus.GaugeValue, |
|
|
|
c.deviceErrorDesc, prometheus.GaugeValue, |
|
|
|
s.deviceError, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
s.deviceError, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
ch <- prometheus.MustNewConstMetric( |
|
|
|
|
|
|
|
c.roDesc, prometheus.GaugeValue, |
|
|
|
|
|
|
|
s.ro, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if s.deviceError > 0 { |
|
|
|
if s.deviceError > 0 { |
|
|
|
continue |
|
|
|
continue |
|
|
|
} |
|
|
|
} |
|
|
@ -210,10 +215,6 @@ func (c *filesystemCollector) Update(ch chan<- prometheus.Metric) error { |
|
|
|
c.filesFreeDesc, prometheus.GaugeValue, |
|
|
|
c.filesFreeDesc, prometheus.GaugeValue, |
|
|
|
s.filesFree, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
s.filesFree, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
) |
|
|
|
) |
|
|
|
ch <- prometheus.MustNewConstMetric( |
|
|
|
|
|
|
|
c.roDesc, prometheus.GaugeValue, |
|
|
|
|
|
|
|
s.ro, s.labels.device, s.labels.mountPoint, s.labels.fsType, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return nil |
|
|
|
return nil |
|
|
|
} |
|
|
|
} |
|
|
|