【问题标题】:Grafana Windows Exporter Dashboard CPU Load graph up to 2.0Grafana Windows Exporter Dashboard CPU 负载图高达 2.0
【发布时间】:2020-07-09 13:38:58
【问题描述】:
使用 Windows Exporter Dashboard 我得到奇怪的 CPU 使用率结果。红色区域一直跨越到 X 轴的 2.0 值:
但如果我点击一个指标,它看起来是正确的:
dpc
空闲
中断
特权
用户
图表的查询是这样的:
sum by (mode) (rate(windows_cpu_time_total{instance=~"$server"}[5m]))
所有 5 个指标(第一张图片)看起来都是这样的原因是什么?
它是使 user 图倒置的功能吗?如果是这样,这是如何完成的,为什么是 2.0?
【问题讨论】:
标签:
prometheus
grafana
cpu-usage
windows-explorer
【解决方案1】:
尝试对每种模式进行查询:
avg(irate(windows_cpu_time_total{mode="idle", job=~"windows_exporter_test",instance=~"localhost:9182"}[5m])) * 100
【解决方案2】:
我发现以下对我有用(频率,包括空闲时间)
avg by (mode) (rate(windows_cpu_time_total{instance=~"$server", mode!="idle"}[10s])) * 100