Yes, and no. You can check for a matching value for a range of time but not
for a count of points.
Something like this will alert if the watchingValue is zero for all points
during a 1m period.
|window()
.period(1m)
.every(1m)
|alert()
.crit(lambda: "watchingValue"==0)
.all()
I feature has been requested to allow for windowing by count in addition to
time. https://github.com/influxdata/kapacitor/issues/327
On Monday, August 8, 2016 at 5:26:59 AM UTC-6, [email protected]
wrote:
>
> I am using Kapacitor for alerting whenever a certain value becomes 0 using
> the lambda as below,
>
> alert()
> .crit(lambda: "watchingValue"==0)
>
> Is there a way, i can write the above lambda, such that an alert is
> triggered when the watchingValue is 0 consecutively for 3 times.
>
> something like below,
>
> alert()
> .crit(lambda: count("watchingValue"==0)>3)
>
>
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" 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/1016395e-389d-4880-b796-aee6bf7e2e78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.