Forum Discussion
roopesh_shetty
Jun 06, 2019Copper Contributor
Query for Percent Memory Used
Hi Guys, Can someone give me the azure log analytics Query which will provide me the Memory (RAM) usage in percentage (Percent Memory Used) of all Virtual machines.
NDDev105
May 17, 2023Copper Contributor
roopesh_shetty, you can use:
Perf
| where ObjectName == "Memory" and CounterName == "% Committed Bytes In Use"
| summarize AvgMemoryUsage = avg(CounterValue) by bin(TimeGenerated, 1hr), Computer
| render timechart with (title = "Memory Utilization", xtitle = "Time", ytitle = "Value", ymax=100)
Perf
| where ObjectName == "Memory" and CounterName == "% Committed Bytes In Use"
| summarize AvgMemoryUsage = avg(CounterValue) by bin(TimeGenerated, 1hr), Computer
| render timechart with (title = "Memory Utilization", xtitle = "Time", ytitle = "Value", ymax=100)