From f850a841409f96089d57564ef84a46ab1f81b003 Mon Sep 17 00:00:00 2001 From: matt durham Date: Mon, 8 Jan 2024 09:57:25 -0500 Subject: [PATCH] add call to set perf counter query Signed-off-by: matt durham --- exporter.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exporter.go b/exporter.go index 1119fb62..f93a3b75 100644 --- a/exporter.go +++ b/exporter.go @@ -153,6 +153,11 @@ func main() { _ = level.Error(logger).Log("msg", "Couldn't load collectors", "err", err) os.Exit(1) } + err = collectors.SetPerfCounterQuery() + if err != nil { + _ = level.Error(logger).Log("msg", "Couldn't set performance counter query", "err", err) + os.Exit(1) + } if u, err := user.Current(); err != nil { _ = level.Warn(logger).Log("msg", "Unable to determine which user is running this exporter. More info: https://github.com/golang/go/issues/37348")