Use a window operation and then set the `.all()` property on the alert.
For example:
...
|window()
.period(3m)
.every(1m)
|alert()
.crit(lambda: "value" > 90)
.all()
On Wednesday, November 16, 2016 at 10:15:47 AM UTC-7, [email protected]
wrote:
>
> Hi,
> How do i tell tick script to generate me an alert if thresholds are
> breached for 'n' successive times?
>
> So considering telegraf agent is collecting cpu usage every 1 min and
> sending it to kapacitor, I want to get alert if my cpu usage goes above 90
> for 3 consecutive polls.
>
--
Remember to include the version number!
---
You received this message because you are subscribed to the Google Groups
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/a6201490-f129-45b8-86d8-1d8e4ef5cd58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.