What should I add to this definition so that the critical alert gets 
triggered when the 'used_percent' is above 95 % *for more than 5 minutes*?

Thanks!

stream
        |from()
                .measurement('mem')
                .groupBy('host')
        |alert()
                .id('{{index .Tags "host" }} memory utilization')
                .message('{{ .ID }} is {{ .Level }} value:{{ index .Fields 
"used_percent" }}')
                .crit(lambda: "used_percent" > 95)
                .stateChangesOnly()
                .log('/tmp/alerts.log')

-- 
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/52083cf7-873c-4a0d-8218-44472a82a2f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to