-
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.dpdk): Add options to customize error-behavior and metric layout #14308
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.
Did only a small review on the docs..
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.
Thank you for your contribution @PanKaker! I do have some comments regarding the plugin/function structure etc... Please take a look!
Hi, @srebhan. I've addressed almost all comments. I will need to think about renaming the configuration options (dpdk_*) and I will back with the answer under the discussions |
All comments are addressed. |
I can see that 1 ci is failing (ci/circleci: test-go-windows), I think it's not connected with the changes, could you please confirm this and rerun this step? I'm also assuming that you will release a new release at the beginning of December. Could you please confirm, that we will be able to merge it until this time? Thank you. |
This comment was marked as outdated.
This comment was marked as outdated.
@PanKaker I commented on some of your comments. My punchline is that splitting code too much (especially if the factored-out functions are only called once) should be avoided. Having to much fragmentation disturbs reviews and debugging later so please do not wrap single function calls with a function. Furthermore, think of functions as a functional unit that is ingested easier if in one place. There are of course exceptions for very complicated or long functions... |
…tifySocket function. Remove prepareGlob func. Remove getArrayDiff func. Update tests
Hi, @srebhan. |
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 the update @PanKaker! I do have some more minor comments but we are getting close.
Hi, @srebhan. All comments were addressed. Waiting for your feedback. P.S. I've noticed that "Lint plugin readmes" is not passing, but it's not connected with this PR:
|
…b func to proper file.
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 the update @PanKaker! Two more small comments and we are good to go from my side...
Hi, @srebhan! Comments are addressed. P.S. There is still issue wtih CI step
|
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 @PanKaker! Don't worry about the Webhook linter error above, I'm aware that it is not introduced by your PR. :-)
I did check the error-messages once again and found some without parameters (where we should use errors.New
) and one with a non-consistent style. I can just submit the suggestions or you do it. Whatever you prefer...
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 a lot @PanKaker!
Hi, @srebhan! Thank you for the feedback. I've changed the fmt.Errorf to errors.New in addressed comments + in a few more places. |
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 the PR - I do have one question around the metadata fields option.
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.
Thank you for the time you put into this PR!
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 |
Required for all PRs
Contribution to inputs.dpdk plugin.
New version of the plugin with:
ethdev/info
pid
andversion
of DPDK/ethdev/link_status
. (0 for "DOWN", and 1 for "UP")unreachable_socket_behavior
More info in the README.MD
resolves #14307