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(".+").String()
unitIncludeSetbool
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{
unitIncludeSet=true
returnnil
}).String()
oldUnitInclude=kingpin.Flag("collector.systemd.unit-whitelist","DEPRECATED: Use --collector.systemd.unit-include").Hidden().String()
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)").String()
unitExcludeSetbool
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{
unitExcludeSet=true
returnnil
}).String()
oldUnitExclude=kingpin.Flag("collector.systemd.unit-blacklist","DEPRECATED: Use collector.systemd.unit-exclude").Hidden().String()
systemdPrivate=kingpin.Flag("collector.systemd.private","Establish a private, direct connection to systemd without dbus (Strongly discouraged since it requires root. For testing purposes only).").Hidden().Bool()
enableTaskMetrics=kingpin.Flag("collector.systemd.enable-task-metrics","Enables service unit tasks metrics unit_tasks_current and unit_tasks_max").Bool()