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
No known key found for this signature in database
GPG Key ID: 235C15B6086C9D7E
2 changed files with 2 additions and 2 deletions

View File

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

View File

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