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

Inaccurate windows_cpu_time_total value #810

Closed
sdemircan opened this issue Jun 21, 2021 · 5 comments
Closed

Inaccurate windows_cpu_time_total value #810

sdemircan opened this issue Jun 21, 2021 · 5 comments
Labels

Comments

@sdemircan
Copy link

sdemircan commented Jun 21, 2021

We are running windows_exporter on Windows Server 2019 Datacenter. I am trying calculate total cpu usage percentage by following query:

100 - (avg by (instance) (irate(windows_cpu_time_total{mode="idle"}[2m])) * 100)

Query's result is not same as task the manager's reported value. For example this query's result is 2%, however task manager reports cpu utilization is 25%. Am I doing anything wrong?

@katepangLiu
Copy link

Maybe issue #494 can help you.

@breed808
Copy link
Contributor

There's been some good discussion of windows_cpu_time_total and CPU frequency in #787

@andonovski
Copy link

There's been some good discussion of windows_cpu_time_total and CPU frequency in #787

I know this is old thread, but just to add something to keep it alive until this is solved. Maybe some more people have this issue.

I have same problem with CPU usage in %. Whatever query I try it's not showing what task manager is showing, not even close.
It seems that higels is on the right track. I hope we will soon have this solved.

@veruzi
Copy link

veruzi commented Dec 20, 2022

Any fix/workaround for this?

Copy link

This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Nov 25, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants