Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
perzizzle opened this issue Jul 13, 2021 · 2 comments
Closed
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

Comments

@perzizzle
Copy link

perzizzle commented Jul 13, 2021

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.

@perzizzle perzizzle added the feature request Requests for new plugin and for new features to existing plugins label Jul 13, 2021
@telegraf-tiger telegraf-tiger bot added area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) platform/windows labels Jul 13, 2021
@reimda
Copy link
Contributor

reimda commented Apr 18, 2022

Could you test #10995 and see if it does what you're looking for? Thanks!

@reimda reimda added the waiting for response waiting for response from contributor label Apr 18, 2022
@telegraf-tiger
Copy link
Contributor

telegraf-tiger bot commented May 3, 2022

Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!

@telegraf-tiger telegraf-tiger bot closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants