mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-11 23:46:44 +00:00
Collector builder functions are only used internally in the `collector` package, and shouldn't needlessly be exposed as part of the package API to downstream clients. Signed-off-by: Ben Reedy <breed808@breed808.com>
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)
|
|
}
|