我一直在处理 Log Analytics 工作区查询,我想知道 windows VM 正在使用的内存(RAM)特别是,在 linux vm 中,我们可以从中获取它,% Used Memory counter
尽管无法获取 Windows VM。Linux 已用内存查询如下图所示:
// Memory usage
Perf
| where TimeGenerated > ago(30m)
| where CounterName == "% Used Memory"
| project TimeGenerated, CounterName, CounterValue, Computer
| summarize UsedMemory = avg(CounterValue) by CounterName, bin(TimeGenerated, 1m), Computer
| where UsedMemory > 20
| render timechart