mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-19 03:06:37 +00:00
chore: optimize registry collector (#1683)
This commit is contained in:
@@ -9,7 +9,7 @@ func MapCounterToIndex(name string) string {
|
||||
}
|
||||
|
||||
func GetPerflibSnapshot(objNames string) (map[string]*PerfObject, error) {
|
||||
objects, err := QueryPerformanceData(objNames)
|
||||
objects, err := QueryPerformanceData(objNames, "")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user