question

SPD-4842 avatar image
1 Vote"
SPD-4842 asked ChrisPeacock-1515 answered

How to create an alert for Azure Windows VM Memory usage

Hi,

We have few Azure windows VM and we have also enabled Azure windows VM insight for monitoring and data is sending to Log analytics workspace. We can also see the VM in Azure monitor. Requirement is to create the Alert for "%memory usage" However, we are unable to create it.

Already gone through below link but it is still not working from Log analytics workspace. VM is connected to this Log analytics workspace.

https://social.msdn.microsoft.com/Forums/en-US/3fbe024d-6d8e-40ef-adeb-7c5ee021919b/how-do-i-set-alerts-for-memory-disk-usage-in-vms?forum=WAVirtualMachinesforWindows#:~:text=Go%20to%20the%20log%20analytics,the%20Add%20button%20under%20condition.


No result is coming out from "Configure signal logic" result

Can anyone help to crate the azure alert for VM memory usage ?

azure-monitor
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered

Hi,

You can also follow the official guide provided in the Microsoft documentation here:

How to create alerts from Azure Monitor for VMs
https://docs.microsoft.com/en-us/azure/azure-monitor/insights/vminsights-alerts

You'll find the list of Object Names and Counter Names over here:

Windows and Linux performance data sources in Azure Monitor
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-performance-counters


Best regards,
Leon

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ET-docs avatar image
0 Votes"
ET-docs answered

Hello,
None of above works.
I mean Azure is very weak in alerting VM memory. I haven't been able to find a way to create an alert for memory so far.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kviera avatar image
0 Votes"
kviera answered

I'm having the same issue as @ET-docs where the official Microsoft documentation does not fire the alerts. I will go through the setup again and open a support case as this is becoming a bigger and bigger problem if we can't leverage the native tools in the cloud and have to bring our own monitoring.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TerryW-4695 avatar image
1 Vote"
TerryW-4695 answered TerryW-4695 published

Having same question here.
I have enabled Azure Monitor on the VMs, and enabled the Performance counter in LAW, and also deployed the agents.
However in LAW when configuring Alert Rule, the signal doesn't have anything.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChrisPeacock-1515 avatar image
0 Votes"
ChrisPeacock-1515 answered

The nearest one I can find that works is via perf counters, but these are the more expensive alerting options as it's based on log searches.

Perf | where ObjectName == "Memory" and CounterName == "% Committed Bytes In Use" | summarize AggregatedValue = avg(CounterValue) by Computer, bin(TimeGenerated, 2m)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.