Merge pull request #1376 from mattdurham/master

This commit is contained in:
Jan-Otto Kröpke
2024-01-09 09:02:13 +01:00
committed by GitHub

View File

@@ -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")