-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Comments
@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. |
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 thanks for submitting a PR. we will take a look. |
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.
The text was updated successfully, but these errors were encountered: