Azure Log Analytics获取IOP

时间:2018-03-07 23:56:17

标签: powershell azure azure-log-analytics

我正试图找到平均值。磁盘秒/写和平均磁盘秒/使用日志分析读取azure中的磁盘,但我不断收到错误。我不情愿地尝试OMS,因为我还没有找到通过Powershell获取信息的方法。

在没有查询PerfMon计数器的情况下,Powershell有没有办法获得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,以考虑调整大小操作是否可行。

提前致谢:)

0 个答案:

没有答案