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

Record Device Fields Regardless of Attribute Flag #6638

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

ryan-peck
Copy link
Contributor

@ryan-peck ryan-peck commented Nov 8, 2019

Changed logic to allow recording of device fields without having to set attributes flag to true. With attributes set to false, if the metric is classified as an attribute it is not recorded. This occurs even is the metric is not a vendor attribute. Left it like this to keep the system compatible with users who are expecting the current structure. Validated with 'go test' and by building telegraf and monitoring inputs into local influxdb.

closes #6619

Required for all PRs:

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

set attributes flag to true. With attributes set to false,
if the metric is classified as an attribute it is not recorded. This
occurs even is the metric is not a vendor attribute. Left it like this
to keep the system compatible with users who are expecting the current
structure.
@ryan-peck
Copy link
Contributor Author

Not sure why test-go-1.12 is failing for an unrelated plug-in. Any tips would be appreciated.

For clarity, this PR handles #6619

@danielnelson
Copy link
Contributor

@ryan-peck Sorry, just an intermittent test, I think it was resolved in 25e1636. Are you able to sign the CLA so I can review?

@ryan-peck
Copy link
Contributor Author

Thanks for the update! I have just signed the CLA.

@danielnelson danielnelson added fix pr to fix corresponding bug and removed need more info labels Jan 15, 2020
@danielnelson danielnelson added this to the 1.13.2 milestone Jan 15, 2020
@danielnelson danielnelson merged commit 1b4aad2 into influxdata:master Jan 15, 2020
danielnelson pushed a commit that referenced this pull request Jan 15, 2020
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/smart fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Attributes flag does not have expected function
2 participants