Skip to content

Commit 23c6ede

Browse files
committed
Default-exclude the ext4 'features' meta device
1 parent 7e8f190 commit 23c6ede

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

collector/ext4_linux.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ import (
2626
"github.com/prometheus/procfs/ext4"
2727
)
2828

29+
const (
30+
ext4DefaultIgnoredDevices = "^features$"
31+
)
32+
2933
var (
3034
ext4DeviceExclude = kingpin.Flag(
3135
"collector.ext4.device-exclude",
3236
"Regexp of ext4 devices to exclude (mutually exclusive to device-include).",
33-
).String()
37+
).Default(ext4DefaultIgnoredDevices).String()
3438

3539
ext4DeviceInclude = kingpin.Flag(
3640
"collector.ext4.device-include",

0 commit comments

Comments
 (0)