我试图找到平均。磁盘秒/写和平均。使用日志分析在天蓝色的磁盘上进行磁盘秒/读取,但我不断收到错误。我不情愿地尝试 OMS,因为我还没有找到通过 Powershell 获取信息的方法。
Powershell 有没有办法在不查询 PerfMon 计数器的情况下获得 IOPS?我想直接通过门户查询磁盘,它确实显示了信息。我将添加 powershell 标签,以防任何人对此有所了解。
我在日志分析上试过这些
Perf
| where TimeGenerated > ago(7d)
| where ObjectName == "LogicalDisk" and CounterName == "Avg. Disk sec/Write"
| summarize (TimeGenerated, Avg_Disk_Write)=arg_max(TimeGenerated, CounterValue) by Computer, InstanceName
| where strlen(InstanceName) ==2 and InstanceName contains ":";
let Avg_Disk_Write=
Perf
| where TimeGenerated > ago(7d)
| where ObjectName == "LogicalDisk" and CounterName == "Avg. Disk sec/Read"
| summarize (TimeGenerated, Avg_Disk_Read)=arg_max(TimeGenerated, CounterValue) by Computer, InstanceName
| where strlen(InstanceName) ==2 and InstanceName contains ":";
Avg_Disk_Read
| join (
disk_free_MB
) on Computer, InstanceName
| project Computer, InstanceName, Avg_Disk_Write, Avg_Disk_Read
这没有帮助我然后尝试
Perf
| where ObjectName == "Capacity and Performance" and (CounterName == "VHD Reads/s" or CounterName == "VHD Writes/s")
| summarize AggregatedValue = avg(CounterValue) by bin(TimeGenerated, 7d), CounterName, InstanceName
这些都没有帮助,我希望你能指出我正确的方向......我正在尝试了解磁盘的 IOPS 以考虑调整大小操作是否可行。
提前致谢 :)