mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-10 23:16:36 +00:00
To retrieve data from Win32_DiskDrive Object Signed-off-by: sixfears7 <57415489+6fears7@users.noreply.github.com> Signed-off-by: pgibbs1 <pgibbs1@liberty.edu>
18 lines
484 B
Go
18 lines
484 B
Go
package collector
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkDiskDriveCollector(b *testing.B) {
|
|
benchmarkCollector(b, "disk_drive", newDiskDriveInfoCollector)
|
|
}
|
|
|
|
// goos: windows
|
|
// goarch: amd64
|
|
// pkg: github.com/prometheus-community/windows_exporter/collector
|
|
// cpu: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
|
|
// BenchmarkDiskDriveCollector-8 1 1334272800 ns/op 41182008 B/op 125688 allocs/op
|
|
// PASS
|
|
// ok github.com/prometheus-community/windows_exporter/collector 4.943s
|