fix!: Set correct diskdrive collector/metric name

Previous name did not match documentation and WMI class.

Signed-off-by: Ben Reedy <breed808@breed808.com>
This commit is contained in:
Ben Reedy
2023-04-03 06:16:31 +10:00
parent 49afc93d93
commit 535f041423
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ type DiskDriveInfoCollector struct {
} }
func newDiskDriveInfoCollector() (Collector, error) { func newDiskDriveInfoCollector() (Collector, error) {
const subsystem = "disk_drive" const subsystem = "diskdrive"
return &DiskDriveInfoCollector{ return &DiskDriveInfoCollector{
DiskInfo: prometheus.NewDesc( DiskInfo: prometheus.NewDesc(

View File

@@ -82,7 +82,7 @@ var collectors = []collectorInit{
perfCounterNames: nil, perfCounterNames: nil,
}, },
{ {
name: "disk_drive", name: "diskdrive",
builder: newDiskDriveInfoCollector, builder: newDiskDriveInfoCollector,
perfCounterNames: nil, perfCounterNames: nil,
}, },