mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-16 01:33:07 +01:00
Set SCSI disk metrics to GaugeValue
Signed-off-by: John Thiltges <jthiltges2@unl.edu>
This commit is contained in:
parent
637ad4223b
commit
179f37f05d
1 changed files with 5 additions and 5 deletions
10
smartctl.go
10
smartctl.go
|
@ -442,7 +442,7 @@ func (smart *SMARTctl) mineSCSIGrownDefectList() {
|
|||
if scsi_grown_defect_list.Exists() {
|
||||
smart.ch <- prometheus.MustNewConstMetric(
|
||||
metricSCSIGrownDefectList,
|
||||
prometheus.CounterValue,
|
||||
prometheus.GaugeValue,
|
||||
scsi_grown_defect_list.Float(),
|
||||
smart.device.device,
|
||||
smart.device.family,
|
||||
|
@ -457,7 +457,7 @@ func (smart *SMARTctl) mineSCSIErrorCounterLog() {
|
|||
if SCSIHealth.Exists() {
|
||||
smart.ch <- prometheus.MustNewConstMetric(
|
||||
metricReadErrorsCorrectedByRereadsRewrites,
|
||||
prometheus.CounterValue,
|
||||
prometheus.GaugeValue,
|
||||
SCSIHealth.Get("read.errors_corrected_by_rereads_rewrites").Float(),
|
||||
smart.device.device,
|
||||
smart.device.family,
|
||||
|
@ -466,7 +466,7 @@ func (smart *SMARTctl) mineSCSIErrorCounterLog() {
|
|||
)
|
||||
smart.ch <- prometheus.MustNewConstMetric(
|
||||
metricReadTotalUncorrectedErrors,
|
||||
prometheus.CounterValue,
|
||||
prometheus.GaugeValue,
|
||||
SCSIHealth.Get("read.total_uncorrected_errors").Float(),
|
||||
smart.device.device,
|
||||
smart.device.family,
|
||||
|
@ -475,7 +475,7 @@ func (smart *SMARTctl) mineSCSIErrorCounterLog() {
|
|||
)
|
||||
smart.ch <- prometheus.MustNewConstMetric(
|
||||
metricWriteErrorsCorrectedByRereadsRewrites,
|
||||
prometheus.CounterValue,
|
||||
prometheus.GaugeValue,
|
||||
SCSIHealth.Get("write.errors_corrected_by_rereads_rewrites").Float(),
|
||||
smart.device.device,
|
||||
smart.device.family,
|
||||
|
@ -484,7 +484,7 @@ func (smart *SMARTctl) mineSCSIErrorCounterLog() {
|
|||
)
|
||||
smart.ch <- prometheus.MustNewConstMetric(
|
||||
metricWriteTotalUncorrectedErrors,
|
||||
prometheus.CounterValue,
|
||||
prometheus.GaugeValue,
|
||||
SCSIHealth.Get("write.total_uncorrected_errors").Float(),
|
||||
smart.device.device,
|
||||
smart.device.family,
|
||||
|
|
Loading…
Reference in a new issue