-
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_wmi): Allow to invoke methods #15300
feat(inputs.win_wmi): Allow to invoke methods #15300
Conversation
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.
That execute function is mighty... how on earth did you figure it out?
Two questions in line
Co-authored-by: Joshua Powers <powersj@fastmail.com>
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.
Last two commits look good, thanks!
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 🥳 This pull request decreases the Telegraf binary size by -1.18 % for linux amd64 (new size: 236.4 MB, nightly size 239.2 MB) 📦 Click here to get additional PR build artifactsArtifact URLs |
Summary
This PR allows to invoke WMI methods similar to the
Invoke-Method
command. This way it is possible to e.g. extract registry keys and create a metric from the returned value(s).Checklist
Related issues
resolves #14653