mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-01-27 01:34:15 +00:00
add call to set perf counter query
Signed-off-by: matt durham <mattdurham@ppog.org>
This commit is contained in:
parent
52b66bfb84
commit
f850a84140
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user