简体   繁体   中英

Creating % based alerts with elastalert

Currently with rule type Frequency(or any other), we can configure count based alerts.

ex. if Error=404, occurs more than 5 times in last 1 hour.

But I want to configure % based alerts and not count based alert.

ex. If Error=404 goes beyond 10% in last 1 hour.

Is it possible to configure such alert ?

elastAlert allows anyone to create their own rules . So you can inspire yourself from what the frequency rule does and create a new one that works on percentage instead.

In your case, instead of creating a new rule you could simply subclass FrequencyRule and modify the behavior to fit your needs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM