From 535f0414239a751c545bce77f6fe69fc6d770cda Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Mon, 3 Apr 2023 06:16:31 +1000 Subject: [PATCH] fix!: Set correct diskdrive collector/metric name Previous name did not match documentation and WMI class. Signed-off-by: Ben Reedy --- collector/diskdrive.go | 2 +- collector/init.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/diskdrive.go b/collector/diskdrive.go index 63f48d67..6a554abc 100644 --- a/collector/diskdrive.go +++ b/collector/diskdrive.go @@ -26,7 +26,7 @@ type DiskDriveInfoCollector struct { } func newDiskDriveInfoCollector() (Collector, error) { - const subsystem = "disk_drive" + const subsystem = "diskdrive" return &DiskDriveInfoCollector{ DiskInfo: prometheus.NewDesc( diff --git a/collector/init.go b/collector/init.go index c225a90c..932c0d08 100644 --- a/collector/init.go +++ b/collector/init.go @@ -82,7 +82,7 @@ var collectors = []collectorInit{ perfCounterNames: nil, }, { - name: "disk_drive", + name: "diskdrive", builder: newDiskDriveInfoCollector, perfCounterNames: nil, },