14 lines
344 B
Go
14 lines
344 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.
|
|
localVolumeWhitelist := ".+"
|
|
volumeWhitelist = &localVolumeWhitelist
|
|
|
|
benchmarkCollector(b, "logical_disk", NewLogicalDiskCollector)
|
|
}
|