-
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
processors.topk plugin does not work with Windows #5154
Comments
I think the field names might be wrong, can you run |
@danielnelson win_mem,host=SFG24,hostgroup=IT,objectname=Memory,role=Mailserver Available_Bytes=4380372992,Cache_Faults_persec=14.853553771972656,Demand_Zero_Faults_persec=176.2621612548828,Free_&_Zero_Page_List_Bytes=97824768,Modified_Page_List_Bytes=67784704,Page_Faults_persec=192.10595703125,Pages_persec=0,Pool_Nonpaged_Bytes=432881664,Pool_Paged_Bytes=364802048,Standby_Cache_Core_Bytes=0,Standby_Cache_Normal_Priority_Bytes=4263161856,Standby_Cache_Reserve_Bytes=19386368,Transition_Faults_persec=16.834026336669922 1545206881000000000 win_proc,host=SFG24,hostgroup=IT,instance=SMSvcHost,objectname=Process,role=Mailserver At first look, i do not see any error regarding win_proc and wrong field |
@danielnelson [[inputs.win_perf_counters]] [[inputs.win_perf_counters.object]] ##rewrite german metrics field name to english: [[processors.rename]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] [[processors.rename.replace]] ##topk plugin |
Glad you have it working, it would be nice if we had a less labor intense way of translating but this will have to do for now. I'm going to close this issue, you may be interested in #4906 concerning unwanted localization on this plugin. |
Relevant telegraf.conf:
[[inputs.win_perf_counters.object]]
# Process metrics
ObjectName = "Process"
Counters = [
"% Processor Time",
"Handle Count",
"Private Bytes",
"Thread Count",
"Virtual Bytes",
"Working Set"
]
Instances = ["*"]
Measurement = "win_proc"
[[processors.topk]]
namepass = ["*win_proc*"]
k = 5
fields = [
"% Processor Time",
"Handle Count",
"Private Bytes",
"Thread Count",
"Virtual Bytes",
"Working Set"
]
System info:
Telegraf Version = 1.9
OS = Windows 2016 Server (localisation DE)
[Include Telegraf version, operating system name, and other relevant details]
Steps to reproduce:
Expected behavior:
Values from processors.topk plugin
Actual behavior:
No values are generated, however the following error message appears in the logfile of telegraf.
2018-12-18T10:48:00Z I! Loaded inputs: inputs.win_perf_counters
2018-12-18T10:48:00Z I! Loaded aggregators:
2018-12-18T10:48:00Z I! Loaded processors: topk
2018-12-18T10:48:00Z I! Loaded outputs: influxdb
2018-12-18T10:48:00Z I! Tags enabled: host=TEST hostgroup=IT role=TEST
2018-12-18T10:48:00Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"TEST", Flush Interval:10s
2018-12-18T10:48:00Z D! [agent] Connecting outputs
2018-12-18T10:48:00Z D! [agent] Attempting connection to output: influxdb
2018-12-18T10:48:00Z D! [agent] Successfully connected to output: influxdb
2018-12-18T10:48:00Z D! [agent] Starting service inputs
2018-12-18T10:51:00Z D! [outputs.influxdb] wrote batch of 17 metrics in 2.9901ms
2018-12-18T10:51:00Z D! [outputs.influxdb] buffer fullness: 0 / 1000 metrics.
2018-12-18T10:51:10Z D! [outputs.influxdb] wrote batch of 17 metrics in 2.0821ms
2018-12-18T10:51:10Z D! [outputs.influxdb] buffer fullness: 0 / 1000 metrics.
2018-12-18T10:51:20Z D! [outputs.influxdb] wrote batch of 17 metrics in 2.9955ms
2018-12-18T10:51:20Z D! [outputs.influxdb] buffer fullness: 0 / 1000 metrics.
2018-12-18T10:51:30Z D! [outputs.influxdb] wrote batch of 17 metrics in 23.0037ms
2018-12-18T10:51:30Z D! [outputs.influxdb] buffer fullness: 0 / 1000 metrics.
When i comment out the "topk" plugin, values are sent from win_proc.
The text was updated successfully, but these errors were encountered: