-
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.gnmi): Rework plugin #14091
Conversation
Yes, that works! And I think this formatting of the field names by default is much better. I almost didn't think it was working but in simplifying the config for testing, I found the problem. The For anyone else interested in the details, the fields were coming through as (up through
but now with this new code, they are:
And, apparently, this was also changed starting in
And, to clarify, for versions
|
@whizkidTRW there is also a |
LOL That's good to know, but I'm good. I was already overriding them to something sensical, very close to the new output . . . Thanks! |
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.
wow - thank you for improving this plugin.
@srebhan 2 conflicts to address, then feel free to land it |
ce308a6
to
154b2cf
Compare
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
…nmp_lookup * upstream/master: chore(linters): Fix findings found by testifylint: expected-actual (influxdata#14229) chore(deps): Bump github.com/nats-io/nkeys from 0.4.5 to 0.4.6 (influxdata#14225) feat(inputs.procstat)!: Remove useless zero cpu_times (influxdata#14224) feat(inputs.gnmi): Rework plugin (influxdata#14091) fix(outputs.timestream): Clip uint64 values (influxdata#14213) fix(inputs.cgroup): Escape backslashes (influxdata#14187) test(outputs.kafka): Use private network for testing (influxdata#14220) test(inputs.vault): Fix integration test by only testing for subset (influxdata#14222) fix(outputs.elasticsearch): Print error status value (influxdata#14115)
resolves #14044
resolves #14063
This PR reworks the GNMI input plugin to untangle the functions and get a clearer structure. The new code is easier to follow and has a better modularity.
In the course of restructuring issue #14044 is fixed and a unit-test for the issue was added. Furthermore, we can now guess the path tag for strange devices (as e.g. reported in #14044) that do not provide prefix information.