You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: collector/systemd_linux.go
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -42,15 +42,15 @@ const (
42
42
)
43
43
44
44
var (
45
-
systemdIncludeSetbool
46
-
systemdInclude=kingpin.Flag("collector.systemd.unit-include", "Regexp of systemd units to include. Units must both match include and not match exclude to be included.").Default(".+").PreAction(func(c*kingpin.ParseContext) error {
47
-
systemdIncludeSet=true
45
+
unitIncludeSetbool
46
+
unitInclude=kingpin.Flag("collector.systemd.unit-include", "Regexp of systemd units to include. Units must both match include and not match exclude to be included.").Default(".+").PreAction(func(c*kingpin.ParseContext) error {
47
+
unitIncludeSet=true
48
48
returnnil
49
49
}).String()
50
50
oldUnitInclude=kingpin.Flag("collector.systemd.unit-whitelist", "DEPRECATED: Use --collector.systemd.unit-include").Hidden().String()
51
-
systemdExcludeSetbool
52
-
systemdExclude=kingpin.Flag("collector.systemd.unit-exclude", "Regexp of systemd units to exclude. Units must both match include and not match exclude to be included.").Default(".+\\.(automount|device|mount|scope|slice)").PreAction(func(c*kingpin.ParseContext) error {
53
-
systemdExcludeSet=true
51
+
unitExcludeSetbool
52
+
unitExclude=kingpin.Flag("collector.systemd.unit-exclude", "Regexp of systemd units to exclude. Units must both match include and not match exclude to be included.").Default(".+\\.(automount|device|mount|scope|slice)").PreAction(func(c*kingpin.ParseContext) error {
53
+
unitExcludeSet=true
54
54
returnnil
55
55
}).String()
56
56
oldUnitExclude=kingpin.Flag("collector.systemd.unit-blacklist", "DEPRECATED: Use collector.systemd.unit-exclude").Hidden().String()
0 commit comments