mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 22:16:38 +00:00
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:
@@ -26,7 +26,7 @@ type DiskDriveInfoCollector struct {
|
||||
}
|
||||
|
||||
func newDiskDriveInfoCollector() (Collector, error) {
|
||||
const subsystem = "disk_drive"
|
||||
const subsystem = "diskdrive"
|
||||
|
||||
return &DiskDriveInfoCollector{
|
||||
DiskInfo: prometheus.NewDesc(
|
||||
|
||||
@@ -82,7 +82,7 @@ var collectors = []collectorInit{
|
||||
perfCounterNames: nil,
|
||||
},
|
||||
{
|
||||
name: "disk_drive",
|
||||
name: "diskdrive",
|
||||
builder: newDiskDriveInfoCollector,
|
||||
perfCounterNames: nil,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user