Skip to content

Log the instance of win_perf_counters causing invalid data or negative value #9498

@perzizzle

Description

@perzizzle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/windowsRelated to windows plugins (win_eventlog, win_perf_counters, win_services)feature requestRequests for new plugin and for new features to existing pluginsplatform/windowswaiting for responsewaiting for response from contributor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions