fixed format

This commit is contained in:
Zoltan Langi 2019-12-19 12:17:10 +01:00
parent a3ee441193
commit 9666ec9296

View file

@ -289,26 +289,26 @@ func (smart *SMARTctl) mineNvmeSmartHealthInformationLog() {
smart.device.model, smart.device.model,
smart.device.serial, smart.device.serial,
) )
smart.ch <- prometheus.MustNewConstMetric( smart.ch <- prometheus.MustNewConstMetric(
metricMediaErrors, metricMediaErrors,
prometheus.GaugeValue, prometheus.GaugeValue,
iHealth.Get("media_errors").Float(), iHealth.Get("media_errors").Float(),
smart.device.device, smart.device.device,
smart.device.family, smart.device.family,
smart.device.model, smart.device.model,
smart.device.serial, smart.device.serial,
) )
} }
func (smart *SMARTctl) mineNvmeSmartStatus() { func (smart *SMARTctl) mineNvmeSmartStatus() {
iStatus := smart.json.Get("smart_status") iStatus := smart.json.Get("smart_status")
smart.ch <- prometheus.MustNewConstMetric( smart.ch <- prometheus.MustNewConstMetric(
metricSmartStatus, metricSmartStatus,
prometheus.GaugeValue, prometheus.GaugeValue,
iStatus.Get("passed").Float(), iStatus.Get("passed").Float(),
smart.device.device, smart.device.device,
smart.device.family, smart.device.family,
smart.device.model, smart.device.model,
smart.device.serial, smart.device.serial,
) )
} }