From cbf30d07446e86893a223a619bad223853cf5399 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 15 Mar 2021 14:35:03 +0100 Subject: [PATCH] Fix panix when using backwards compatible flags Signed-off-by: Julien Pivotto --- collector/systemd_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/systemd_linux.go b/collector/systemd_linux.go index b374b374..78e258f8 100644 --- a/collector/systemd_linux.go +++ b/collector/systemd_linux.go @@ -131,7 +131,7 @@ func NewSystemdCollector(logger log.Logger) (Collector, error) { } } if *oldUnitInclude != "" { - if *unitInclude == "" { + if *unitInclude == ".+" { // .+ is the default value for collector.systemd.unit-include. level.Warn(logger).Log("msg", "--collector.systemd.unit-whitelist is DEPRECATED and will be removed in 2.0.0, use --collector.systemd.unit-include") *unitInclude = *oldUnitInclude } else {