-
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: Internet Speed Monitor Input Plugin #9623
Conversation
Thanks so much for the pull request! |
Thanks so much for the pull request! |
Thanks so much for the pull request! |
Thanks so much for the pull request! |
!signed-cla |
Can a maintainer approve this pull request, please! |
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 cool PR @ersanyamarya! I have some comments in the code, but the following two things stick out:
- Please gather the speed without using the goroutine/channel construct you have now. Just simply call that function and let it return the speed and error to reduce unnecessary complexity.
- Please make sure that unit-tests requiring internet or network access are disabled in
short
testing mode.
Looking forward to the next review round...
plugins/inputs/internetSpeedMonitor/internetSpeedMonitor_test.go
Outdated
Show resolved
Hide resolved
plugins/inputs/internetSpeedMonitor/internetSpeedMonitor_test.go
Outdated
Show resolved
Hide resolved
plugins/inputs/internetSpeedMonitor/internetSpeedMonitor_test.go
Outdated
Show resolved
Hide resolved
plugins/inputs/internetSpeedMonitor/internetSpeedMonitor_test.go
Outdated
Show resolved
Hide resolved
plugins/inputs/internetSpeedMonitor/internetSpeedMonitor_test.go
Outdated
Show resolved
Hide resolved
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.
Hey @ersanyamarya thanks for the changes! Code looks quite good now, only a few (minor) comments left.
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.
@ersanyamarya This plugin looks good to me, thank you for resolving the requested changes! There seems to be a minor linter issue that will need to be resolved before this can be merged.
@srebhan Thanks for spending time reviewing this!
Looks like new artifacts were built from this PR. 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.
Looks perfect to me! Thanks @ersanyamarya for contributing!
@ersanyamarya please note that it may take some time until you see the PR merged. That's normal and you should not get nervous. ;-) |
Thank you @srebhan for the information. I'm waiting to see my plugin in the release 👍🏼 . |
@ersanyamarya What instances does the plugin report latency? I've been testing this plugin and haven't been getting latency stats.
|
Hey @sjwang90, Latency refers to the time taken by the |
Ah cool good to know. Thanks @ersanyamarya! Fun and easy configuration plugin. |
@sjwang90 , I am glad, the plugin is useful. |
(cherry picked from commit 40fa10b)
Required for all PRs:
resolves #
Added an input plugin to monitor Internet Speed using golang library speedtest