Forum Discussion

Dante Nahuel Ciai's avatar
Dante Nahuel Ciai
Brass Contributor
Jan 24, 2018
Solved

Automation to start/stop on conditions

Hi I'm trying to perform an OMS automation that works on the following conditions: Automatically brought online when certain nodes reach one of the following resource utilization levels: ...
  • Dante Nahuel Ciai's avatar
    Jan 25, 2018

    Ok so for the time I understand i should use TimeGenerated ago(120m)

     

    So the two queries should look like:

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

    | where CounterName == "% Committed Bytes In Use" and TimeGenerated =< ago(120m)

    | summarize AverageRAM = avg(CounterValue)  by Computer

    | where AverageRAM > 85

     

    Perf
    | where CounterName == "% Processor Time" and TimeGenerated =< ago(120m)
    | summarize AverageRAM = avg(CounterValue) by Computer
    | where AverageRAM > 70

     

    Am i correct?