From 80ce4abcefeb53eb3666f0cc9d659cfd668902e7 Mon Sep 17 00:00:00 2001 From: John Morales Date: Sat, 7 Mar 2026 22:51:12 -0500 Subject: [PATCH] Default-exclude the ext4 'features' meta device Signed-off-by: John Morales --- collector/ext4_linux.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/collector/ext4_linux.go b/collector/ext4_linux.go index a403d5b2..96f45a05 100644 --- a/collector/ext4_linux.go +++ b/collector/ext4_linux.go @@ -26,11 +26,15 @@ import ( "github.com/prometheus/procfs/ext4" ) +const ( + ext4DefaultIgnoredDevices = "^features$" +) + var ( ext4DeviceExclude = kingpin.Flag( "collector.ext4.device-exclude", "Regexp of ext4 devices to exclude (mutually exclusive to device-include).", - ).String() + ).Default(ext4DefaultIgnoredDevices).String() ext4DeviceInclude = kingpin.Flag( "collector.ext4.device-include",