With a subtle change (if anyone interested) Seems that "OK" state is fired only once when the alert recovers, according to documentation
Events are sent to handlers if the alert is in a state other than 'OK' or > the alert just changed to the 'OK' state from a non 'OK' state (a.k.a. the > alert recovered). Using the AlertNode.StateChangesOnly property events will > only be sent to handlers if the alert changed state. I was getting CRIT CRIT CRIT series of events but not OK OK OK ones So I was forced to use a .info(lambda: TRUE) to get alert fired for every "OK" state in the "send all alert events to influx" (I'm using "info" level as OK level here). Why I want this? because I'm planing to have a time series of evaluated events in order to: * get the last state of every alert via influxql * know the last time an alert was evaluated, and not the last time it was evaluated to OK On Thursday, 16 June 2016 19:39:11 UTC+2, [email protected] wrote: > > Ah, yes the lambda expressions as vars was added with the 1.0 beta. > Glad its working! > > On Thursday, June 16, 2016 at 11:29:34 AM UTC-6, Carlos Peñas wrote: >> >> mmm ok, got it :) >> >> It seems all ok except for the >> >> var w = lambda: "usage_idle" < 40 >> var c = lambda: "usage_idle" < 20 >> >> >> Kapacitor complains as >> >> invalid TICKscript: parser: unexpected 9 line 1 char 9 in "var w = >> lambda: "u". expected: "number","string","duration","identifier","TRUE"," >> FALSE","==","(","-","!" >> >> >> So I have to copy ando paste warn and crit values across all alert nodes >> ... This is "beta" syntax? It will be handy >> >> Thanks! >> >> >>>> -- 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/0c8154e2-419e-4af8-82da-c1340cf8ec7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
