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

FP 3959 add option to unbound module to use threads as tags #3969

Merged
merged 7 commits into from
May 23, 2018

Conversation

voiprodrigo
Copy link
Contributor

@voiprodrigo voiprodrigo commented Apr 4, 2018

closes #3959

Required for all PRs:

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

@danielnelson danielnelson added the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Apr 4, 2018
@danielnelson
Copy link
Contributor

@aromeyer Do you have time to review this code?

// is this a thread related value?
if s.ThreadAsTag && strings.HasPrefix(stat, "thread") {
// split the that
statTokens := strings.Split(stat, ".")
Copy link
Contributor

Choose a reason for hiding this comment

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

Check that it split correctly before indexing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! - I think :)

@danielnelson danielnelson added this to the 1.7.0 milestone May 23, 2018
@danielnelson danielnelson merged commit 83b03ec into influxdata:master May 23, 2018
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Proposal] [Input: Unbound DNS] Use tag to identify thread of thread-specific metrics
2 participants