Skip to content
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.internet_speed): server ID include and exclude filter #12617

Merged
merged 6 commits into from
Feb 7, 2023

Conversation

powersj
Copy link
Contributor

@powersj powersj commented Feb 3, 2023

This adds the ability to exclude or include specific speedtest server IDs. If a user excludes a server ID that server is always excluded from selection. If a user includes a specific server ID, we will look for only that ID.

This does not let a user pick a random server ID. The speedtest-go library will receive the 10 closet servers. As such, users need to be careful as they can prevent any server from being picked.

fixes: #11449
fixes: #11625
fixes: #12595

This adds the ability to exclude or include specific speedtest server
IDs. If a user excludes a server ID that server is always excluded from
selection. If a user includes a specific server ID, then we will look
for only that ID.

This does not let a user pick a random server ID. The speedtest-go
library will receive the 10 closet servers. As such, users need to
be careful as they can prevent any server from being picked.

fixes: influxdata#11449
fixes: influxdata#11625
fixes: influxdata#12595
@telegraf-tiger telegraf-tiger bot added feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Feb 3, 2023
Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@powersj thanks for tackling this! I do have a few minor comments though.

plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
plugins/inputs/internet_speed/internet_speed.go Outdated Show resolved Hide resolved
powersj and others added 5 commits February 6, 2023 07:12
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
Co-authored-by: Sven Rebhan <36194019+srebhan@users.noreply.github.com>
@powersj
Copy link
Contributor Author

powersj commented Feb 6, 2023

@srebhan thanks for taking a look, comments resolved

Copy link
Contributor

@srebhan srebhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for fixing this @powersj!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Feb 7, 2023
@srebhan
Copy link
Contributor

srebhan commented Feb 7, 2023

Assign it back to you. Merge if you feel it's ready!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.
Projects
None yet
2 participants