-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
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.