diff --git a/collector/systemd_linux.go b/collector/systemd_linux.go index 0d64397f..76090fc5 100644 --- a/collector/systemd_linux.go +++ b/collector/systemd_linux.go @@ -27,7 +27,7 @@ import ( var ( unitWhitelist = flag.String("collector.systemd.unit-whitelist", ".+", "Regexp of systemd units to whitelist. Units must both match whitelist and not match blacklist to be included.") - unitBlacklist = flag.String("collector.systemd.unit-blacklist", "", "Regexp of systemd units to blacklist. Units must both match whitelist and not match blacklist to be included.") + unitBlacklist = flag.String("collector.systemd.unit-blacklist", ".+\\.scope", "Regexp of systemd units to blacklist. Units must both match whitelist and not match blacklist to be included.") ) type systemdCollector struct {