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

wmi_cpu_time_total abnormal #456

Closed
for-mat opened this issue Jan 22, 2020 · 6 comments
Closed

wmi_cpu_time_total abnormal #456

for-mat opened this issue Jan 22, 2020 · 6 comments

Comments

@for-mat
Copy link

for-mat commented Jan 22, 2020

image
When I got the CPU information, I found that some core's values > 1. I wonder why. This allows me to get CPU usage when part of the value is <0 .

@for-mat
Copy link
Author

for-mat commented Jan 22, 2020

image

@for-mat
Copy link
Author

for-mat commented Jan 22, 2020

irate(wmi_cpu_time_total{instance=~"10.222.60.12:9182",mode="idle"}[1m])

{core="0,11",instance="10.222.60.12:9182",job="pro_user",mode="idle"} 1.0004864133894444

@carlpett
Copy link
Collaborator

Hi @for-mat,
What is your scrape interval? Are all scrapes successful, and how long time do they take? (check the up{instance="10.222.60.12:9182",job="pro_user"} and scrape_duration_seconds{instance="10.222.60.12:9182",job="pro_user"} over the last few minutes)

@for-mat
Copy link
Author

for-mat commented Apr 21, 2020

嗨@ for-mat,
您的抓取间隔是多少?所有刮擦都成功吗?需要多长时间?(检查up{instance="10.222.60.12:9182",job="pro_user"}scrape_duration_seconds{instance="10.222.60.12:9182",job="pro_user"}在最近几分钟内)

image
image
image

@for-mat
Copy link
Author

for-mat commented Apr 21, 2020

嗨@ for-mat,
您的抓取间隔是多少?所有刮擦都成功吗?需要多长时间?(检查up{instance="10.222.60.12:9182",job="pro_user"}scrape_duration_seconds{instance="10.222.60.12:9182",job="pro_user"}在最近几分钟内)

#259 (comment)
Here I see the same thing,I tried this sql but failed,What should I do

1
  -
avg by (instance) (
  irate(wmi_cpu_time_total{mode="idle", instance="$server"}[5m])
    /
  sum by(instance) (irate(wmi_cpu_time_total{instance="$server"}[5m]))
)

@for-mat
Copy link
Author

for-mat commented Apr 24, 2020

1
  -
sum by (instance) (
  irate(wmi_cpu_time_total{mode="idle", instance="$server"}[5m])
    /
  sum by(instance) (irate(wmi_cpu_time_total{instance="$server"}[5m]))
)

@for-mat for-mat closed this as completed Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants