Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prydin issue 8169 #8357

Merged
merged 4 commits into from
Nov 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed method for loading metric name table
  • Loading branch information
prydin committed Oct 29, 2020
commit 1144e84842dede02a924738df2458dcdfd5b4007
7 changes: 4 additions & 3 deletions plugins/inputs/vsphere/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,15 @@ func (e *Endpoint) reloadMetricNameMap(ctx context.Context) error {
return err
}

mn, err := client.CounterInfoByName(ctx)
mn, err := client.CounterInfoByKey(ctx)
if err != nil {
return err
}
e.metricNameLookup = make(map[int32]string)
for name, m := range mn {
e.metricNameLookup[m.Key] = name
for key, m := range mn {
e.metricNameLookup[key] = m.Name()
}
e.log.Debugf("452 --> %s", e.metricNameLookup[452])
return nil
}

Expand Down