Question regarding Alerts via Log Analytics

Hi all,

Since some metrics (like Memory) aren’t available for the new Alerts in Azure, I’m trying to figure out a good way to implement Alerts with the use of Log Analytics.

I’ve enabled Performance Counter on both my Windows and Linux machines and I’m going for an alert that will trigger when Memory Usage is equals to or above 95% for 5 minutes.

I might go for something like this:

Search query:

Perf | where ObjectName == "Memory" | where ( CounterName == "% Used Memory" or CounterName == "% Committed Bytes In Use" ) | where CounterValue >= 95 

Criteria: Whenever the memory usage >= 95% is greater than 0 count

Based on: Number of records -> Greather than -> 0

…But what do you think? Is there a better way of doing this?


submitted by /u/HelloImQ
[link] [comments]

Leave a Reply