From 26e058a40f9aeecb5bc7fe4b68f9cc6547a044c1 Mon Sep 17 00:00:00 2001 From: matt durham Date: Tue, 3 Oct 2023 15:42:28 -0400 Subject: [PATCH] Fix bug with systemd config not being set. --- collector/systemd_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collector/systemd_linux.go b/collector/systemd_linux.go index 869fc6f3..dd7bf406 100644 --- a/collector/systemd_linux.go +++ b/collector/systemd_linux.go @@ -61,7 +61,7 @@ type systemdCollector struct { systemdUnitIncludePattern *regexp.Regexp systemdUnitExcludePattern *regexp.Regexp logger log.Logger - config NodeCollectorConfig + config *NodeCollectorConfig } var unitStatesName = []string{"active", "activating", "deactivating", "inactive", "failed"} @@ -154,6 +154,7 @@ func NewSystemdCollector(config *NodeCollectorConfig, logger log.Logger) (Collec systemdUnitIncludePattern: systemdUnitIncludePattern, systemdUnitExcludePattern: systemdUnitExcludePattern, logger: logger, + config: config, }, nil }