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

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

Closed
voiprodrigo opened this issue Apr 2, 2018 · 5 comments · Fixed by #3969
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@voiprodrigo
Copy link
Contributor

voiprodrigo commented Apr 2, 2018

Proposal:

Create a separate unbound_threads measurement and place there all the thread-specific fields, tagged by the thread id. Probably as an option, as this would duplicate metrics in case of a configuration using a single thread.

Current behavior:

A single "unbound" measurement line is exported with fields for all threads, for example:

[...]
thread8_requestslist_avg
thread9_requestslist_avg
[...]

Desired behavior:

A separate measurement "unbound_threads" with the thread-specific values, with a tag "thread" identifying the thread id (thread0 -> threadX)

unbound_threads,thread=8 requestslist_avg=0,num_cachemiss=7

Use case:

This would allow queries grouped by thread, enabling easier visualizations on top of the thread specific values.

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

russorat commented Apr 2, 2018

@voiprodrigo thanks for the issue! We will consider this for a future release. If you have any interest in tackling this and submitting a PR, we'd be happy to review.

@russorat russorat added the feature request Requests for new plugin and for new features to existing plugins label Apr 2, 2018
@danielnelson danielnelson removed the feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin label Apr 2, 2018
@voiprodrigo
Copy link
Contributor Author

@russorat I might, as initiation to Go, I have never touched it before. Glad to see the request validated, that was the first step.

Sent with GitHawk

@voiprodrigo
Copy link
Contributor Author

Hello,

I think I've got this pretty much done, except the tests fail. Telegraf itself does work as expected, as far as I can tell. I'm probably misunderstanding the asserts.

Can someone take a look at https://github.com/voiprodrigo/telegraf/blob/FP-3959-Unbound/plugins/inputs/unbound/unbound_test.go ?

Thanks.

@voiprodrigo
Copy link
Contributor Author

voiprodrigo commented Apr 4, 2018

I was not passing a required boolean for the new test function.

I submitted PR #3969 @russorat

@russorat
Copy link
Contributor

russorat commented Apr 4, 2018

@voiprodrigo thanks for submitting a PR. we will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants