Merge pull request #1171 from breed808/diskdrive_name

fix!: Set correct diskdrive collector/metric name
This commit is contained in:
Ben Reedy 2023-04-04 05:48:05 +10:00 committed by GitHub
commit 4e02053f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
},