Log the instance of win_perf_counters causing invalid data or negative value #9498
Labels
area/windows
Related to windows plugins (win_eventlog, win_perf_counters, win_services)
feature request
Requests for new plugin and for new features to existing plugins
platform/windows
waiting for response
waiting for response from contributor
Feature Request
Log instance name of a windows performance counter that is causing logs similar to:
will skip metric: A counter with a negative value was detected.
will skip metric: The returned data is not valid.
Proposal:
Current behavior:
2021-07-11T09:26:41Z W! [inputs.win_perf_counters] error while getting value for counter "\.NET CLR Memory(*)\Gen 0 Promoted Bytes/Sec", will skip metric: The returned data is not valid.
Desired behavior:
2021-07-11T09:26:41Z W! [inputs.win_perf_counters] error while getting value for counter "\.NET CLR Memory(*)\Gen 0 Promoted Bytes/Sec", Instance:Foo will skip metric: The returned data is not valid.
Use case:
I'm intermittently getting thousands of log lines similar to this across a variety of our infratructure and am not sure how to identify the culprit instance.
2021-07-11T09:26:41Z W! [inputs.win_perf_counters] error while getting value for counter "\.NET CLR Memory()\Gen 0 Promoted Bytes/Sec", will skip metric: The returned data is not valid.
2021-07-11T09:26:41Z W! [inputs.win_perf_counters] error while getting value for counter "\.NET CLR Memory()\Gen 1 Promoted Bytes/Sec", will skip metric: The returned data is not valid.
I've tried using perfmon to identify a negative value but it either isn't logged or its lost in all of the other instances. As well as using telegraf --config test.conf --test.
The text was updated successfully, but these errors were encountered: