CPU Usage

use-case

Trigger an alert having the CPU usage between  70 - 85 percentage(%) over last 1 month.


Notification Type: Mail


User Input:

You can setup the alerts in Skedler-Alert as given below,

You will receive an alert in mail as shown below,


Notification received via Email


Hi,

Alert has been triggered for alert CPU Usage on Mon Dec 03,2018 12:52:53 IST


Alert Condition:

Rule Type: Threshold, Keyword Filter: * - select * from metricbeat* and where timeWindow between Sat Nov 03,2018 12:52:53 IST - Mon Dec 03,2018 12:52:53 IST having total_cpu_usage between (0.7 - 0.85)


TimeWindow:

Sat Nov 03,2018 12:52:53 IST - Mon Dec 03,2018 12:52:53 IST


Matching Records:


Data generated from Sat Nov 03,2018 12:52:53 IST to Mon Dec 03,2018 12:52:53 IST

user
system
n
total_cpu_usage
@timestamp
3.5901052631578948
2.5582894736842105
8
0.75604934210526317
Thu Nov 15,2018 05:30:00 IST


Explanation

Parameters configured will be replaced as follows:

  1. ${AlertName}       -  CPU Usage
  2. ${TimeStamp}      -  Mon Dec 03,2018 12:52:53 IST
  3. ${TimeWindow}  -  Sat Nov 03,2018 12:52:53 IST - Mon Dec 03,2018 12:52:53 IST

Note - For additional parameters, refer How to setup merge parameters for alert action?


Conclusion

Below is the result for CPU usage between  70 - 85 percentage(%) over last 1 month.

user
system
n
total_cpu_usage
@timestamp
3.5901052631578948
2.5582894736842105
8
0.75604934210526317
Thu Nov 15,2018 05:30:00 IST