Hello jpowers
i checked by replicating your test, and it’s also the final metric (like you).
i alos change the value to test it and setting 5 instead of 20 i got 2 metric.
metricpass = "fields.Percent_Processor_Time > 5"
so input file is working with metricpass
now i tested with other metrics win_perf
[agent]
debug = false
omit_hostname = false
[[outputs.file]]
files = ["stdout"]
[[inputs.win_perf_counters.object]]
ObjectName = "Network Interface"
Counters = [
"Packets Received/sec",
]
Instances = ["*"] # Use 6 x - to remove the Instance bit from the query.
Measurement = "win_net"
metricpass = "fields.Packets_Received_persec < 10"
this is the result, and they are not filtered
2024-01-26T20:56:07Z I! Loading config: test2.conf
2024-01-26T20:56:07Z I! Starting Telegraf 1.29.2 brought to you by InfluxData the makers of InfluxDB
2024-01-26T20:56:07Z I! Available plugins: 241 inputs, 9 aggregators, 30 processors, 24 parsers, 60 outputs, 5 secret-stores
2024-01-26T20:56:07Z I! Loaded inputs: win_perf_counters
2024-01-26T20:56:07Z I! Loaded aggregators:
2024-01-26T20:56:07Z I! Loaded processors:
2024-01-26T20:56:07Z I! Loaded secretstores:
2024-01-26T20:56:07Z I! Loaded outputs: file
2024-01-26T20:56:07Z I! Tags enabled: host=redacted
2024-01-26T20:56:07Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"redacted", Flush Interval:10s
win_net,host=redacted,instance=vmxnet3\ Ethernet\ Adapter,objectname=Network\ Interface,source=redacted Packets_Received_persec=21.802363752817087 1706302572000000000
win_net,host=redacted,instance=vmxnet3\ Ethernet\ Adapter,objectname=Network\ Interface,source=redacted Packets_Received_persec=13.091307615946251 1706302580000000000
win_net,host=redacted,instance=vmxnet3\ Ethernet\ Adapter,objectname=Network\ Interface,source=redacted Packets_Received_persec=15.512886710118963 1706302590000000000
2024-01-26T20:56:42Z I! [agent] Hang on, flushing any cached metrics before shutdown
win_net,host=redacted,instance=vmxnet3\ Ethernet\ Adapter,objectname=Network\ Interface,source=redacted Packets_Received_persec=61.69803368366651 1706302600000000000
2024-01-26T20:56:42Z I! [agent] Stopping running outputs
humm now the question is to find another windows telegraf user other than me, before I create a bug request, or to confirm the pb in my case is between the keyboard and the chair