-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(inputs.win_perf_counter): allow errors to be ignored #10535
Conversation
This reverts commit 72204df.
## Accepts a list of PDH error codes which are defined in pdh.go, if this error is encountered it will be ignored | ||
## For example, you can provide "PDH_NO_DATA" to ignore performance counters with no instances | ||
## By default no errors are ignored | ||
## You can find the list here: https://github.com/influxdata/telegraf/blob/master/plugins/inputs/win_perf_counters/pdh.go | ||
## e.g.: IgnoredErrors = ["PDH_NO_DATA"] | ||
# IgnoredErrors = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be copied into the readme.md too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📦 Looks like new artifacts were built from this PR. Expand this list to get them here ! 🐯Artifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for wrapping this one up!
resolve: #7281
I took the PR started by (#7282) @bielawb (thanks!) to resolve the outstanding issues. To avoid using a boolean in the config as the original PR suggested, I replaced it with a list of strings accepting the names of any PDH (Performance Data Helper) error instead of only allowing to ignore
PDH_NO_DATA
. I also added a unit test which was a blocker for the original PR.Yet again thanks @bielawb for the original PR, if you have sometime to test these new changes and give any feedback that would be appreciated. Your PR was open for a while so sorry about that!