fixed format

This commit is contained in:
Zoltan Langi 2019-12-19 12:17:10 +01:00
parent a3ee441193
commit 9666ec9296
1 changed files with 19 additions and 19 deletions

View File

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