Prometheus通过windows_exporter采集的Windows磁盘延迟与本地测试结果差异排查求助
Prometheus通过windows_exporter采集的Windows磁盘延迟与本地测试结果差异排查求助
各位大佬好,我最近在尝试用windows_exporter监控Windows节点的磁盘延迟,碰到了一个搞不懂的问题,想求助下大家:
我用两种本地测试方式验证磁盘性能,结果都一致:
- 用diskspd工具跑压测:
c:\> diskspd.exe -c1G -d120 -b4K -o32 -t4 -w10 -L -D -Suw testfile.dat
- 用PowerShell的Get-Counter抓取系统原生计数器:
PS c:\> Get-Counter -ComputerName win-node -Counter '\LogicalDisk(*)\Avg. Disk sec/Read','\LogicalDisk(*)\Avg. Disk sec/Write' -SampleInterval 1
这两个测试的输出都显示平均磁盘延迟在11毫秒左右,但我在Prometheus里用查询语句rate(windows_logical_disk_read_write_latency_seconds_total[20s])得到的结果却是125,数值差了好几个量级,完全对不上。
有没有朋友遇到过类似的情况?或者能帮我分析一下这中间的差异可能来自哪里吗?
备注:内容来源于stack exchange,提问作者dsamy
相关产品推荐
相关产品推荐

