The win_perf_counters input does not close query handles #2843
Labels
area/windows
Related to windows plugins (win_eventlog, win_perf_counters, win_services)
platform/windows
Bug report
Based on code inspection, the
win_perf_counters
input does not close its handle usingPdhCloseQuery
. This will likely cause the handles to become lost if the Telegraf reloads the plugin.Relevant telegraf.conf:
N/A
System info:
N/A
Steps to reproduce:
May not currently be possible since I don't think you can trigger a reload of plugins in Windows.
Expected behavior:
win_perf_counters
should callPdhCloseQuery
for every handle opened withPdhOpenQuery
.Actual behavior:
PdhCloseQuery
is never calledAdditional info:
Has not been verified. Discovered in code review of #2800
The text was updated successfully, but these errors were encountered: