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

Add Wireless Input plugin #3847

Merged
merged 13 commits into from
Oct 29, 2018
Merged

Add Wireless Input plugin #3847

merged 13 commits into from
Oct 29, 2018

Conversation

jamesmaidment
Copy link
Contributor

@jamesmaidment jamesmaidment commented Feb 28, 2018

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

The wireless plugin gathers metrics about wireless link quality by reading the /proc/net/wireless file. This plugin currently supports linux only.

@jamesmaidment
Copy link
Contributor Author

@danielnelson anything that can be improved here? Been using this since February in production.

plugins/inputs/wireless/wireless.go Outdated Show resolved Hide resolved
plugins/inputs/wireless/wireless.go Outdated Show resolved Hide resolved
fields := strings.Fields(string(lines[i]))
var values []int64
for i := 1; i < len(fields); i = i + 1 {
v, err := strconv.ParseInt(strings.Trim(fields[i], "."), 10, 64)
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to strings.Trim because strings.Fields handles this.

plugins/inputs/wireless/wireless.go Outdated Show resolved Hide resolved
@glinton
Copy link
Contributor

glinton commented Jul 30, 2018

@jamesmaidment do you think you can update so the tests pass then we can merge this

@glinton
Copy link
Contributor

glinton commented Sep 4, 2018

Similar to #3650

@russorat russorat added this to the 1.9.0 milestone Sep 14, 2018
@jamesmaidment
Copy link
Contributor Author

@glinton fixed now

@danielnelson danielnelson merged commit b24e03b into influxdata:master Oct 29, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants