-
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
custom tags are not per input instance #2535
Comments
Would it be possible to have one |
if I configure telegraf in this way:
then only the last definition of win_perf_counters is polled: only win_proc1 will be filled. |
It might be, can you post a small sample of the output, perhaps using
|
First case only last measurement is written:
|
+1 |
So it's always the last defined plugin that works? Also the tag is still not added. Seems like a bug. |
This is a blocking issue for us, also with database perf counters. Since we have multiple instances, we can only monitor one of them. I'd tried declaring multiple |
I'm going to close this as a duplicate of #1137 |
Feature Request
Assign a custom tag for each input plugin instance.
Actually you can add custom tags only per plugin class
For instance in the case of win_perf_counters could be very useful because the ObjectName often contains the application instance name and this info should be traced in a separate tag (as per influxdb guidelines)
Example:
\SQLServer$PROD:Memory Manager\Total Server Memory (KB)
SQLServer
actually in influx the tag added by the plugin is objectname="SQLServer$PROD:Memory Manager" but it is a compund of 3 infos: the application instance the 'parent' and the performance counter objectname
The custom tag per plugin instance could be a useful mechanism for all plugins.
Relevant telegraf.conf:
System info:
windows server 2012R2
telegraf win 64 bit 1.2.1
Steps to reproduce:
use the inputs of above for put data in influxdb
Expected behavior:
only data for process instance csrss in measurement win_proc0 should have additional tag application_instance = "ZZZ"
Actual behavior:
all metrics of plugin inputs.win_perf_counters in all measurements contains additional tag
application_instance = "ZZZ"
Thanks
The text was updated successfully, but these errors were encountered: