mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-01-01 03:12:03 +00:00
fab77d9d31
Flags have been deprecated in favour of include/exclude terminology. Signed-off-by: Ben Reedy <breed808@breed808.com>
14 lines
338 B
Go
14 lines
338 B
Go
package collector
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func BenchmarkLogicalDiskCollector(b *testing.B) {
|
|
// Whitelist is not set in testing context (kingpin flags not parsed), causing the collector to skip all disks.
|
|
localVolumeInclude := ".+"
|
|
volumeInclude = &localVolumeInclude
|
|
|
|
benchmarkCollector(b, "logical_disk", newLogicalDiskCollector)
|
|
}
|