How to create an alert for Azure Windows VM Memory usage

SPD 191 Reputation points
2020-07-21T00:05:15.157+00:00

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
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
0 comments No comments
{count} vote

Answer accepted by question author
  1. Leon Laude 86,086 Reputation points
    2020-07-21T08:08:22.953+00:00

    Hi,

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

    How to create alerts from Azure Monitor for VMs
    https://learn.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://learn.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-performance-counters

    Best regards,
    Leon

    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Terry.W 6 Reputation points
    2021-05-09T11:12:14.607+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. ET-docs 1 Reputation point
    2020-10-02T16:39:01.213+00:00

    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.

    0 comments No comments

  3. Kevin Viera 1 Reputation point
    2021-03-12T18:16:03.99+00:00

    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.

    0 comments No comments

  4. Chris Peacock 1 Reputation point
    2021-06-21T11:27:55.047+00:00

    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)

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.