chore: optimize registry collector (#1683)

This commit is contained in:
Jan-Otto Kröpke
2024-10-11 00:18:36 +02:00
committed by GitHub
parent f46f9082f9
commit 22fdb33b4c
4 changed files with 17 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ func (c *Collector) Describe() map[string]string {
}
func (c *Collector) Collect() (map[string]map[string]perftypes.CounterValues, error) {
perfObjects, err := QueryPerformanceData(c.query)
perfObjects, err := QueryPerformanceData(c.query, c.object)
if err != nil {
return nil, fmt.Errorf("QueryPerformanceData: %w", err)
}