Set SCSI disk metrics to GaugeValue

Signed-off-by: John Thiltges <jthiltges2@unl.edu>
This commit is contained in:
John Thiltges 2023-06-29 13:48:38 -05:00
parent 637ad4223b
commit 179f37f05d
1 changed files with 5 additions and 5 deletions

View File

@ -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,