Forum Discussion

Ahmed Atef's avatar
Ahmed Atef
Brass Contributor
Feb 20, 2018
Solved

create a search query for the Average of CPU over 15 mins .. and set alert to it

Hi all 

 

I am trying to create some monitoring based on OMS Queries one of the them is creating an alert if the average CPU Utilization over 15 mins was more than 90% .. 

 

when i use this query what i think it is doing is getting all the entries that are more than 90 and get the average of them, but what i want is to get all the measures and based on the average of them if its more than 90 return results so i can create alerts based on that. 

 

keep in consideration im using the OMS search query not the advanced analytics. 

 

Perf
| where TimeGenerated > ago(15m)
| where ( ObjectName == "Processor Information" ) and CounterName == "% Processor Time" and InstanceName == "_Total"
| where CounterValue > 90
| summarize avg(CounterValue) by Computer
| render table

 

help appreciated 🙂 

 

Thanks

Ahmed

7 Replies

No RepliesBe the first to reply

Resources