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