Currently its not possible to rate limit the sending of emails. We are working on a new system that will allow this though.
There are two things you could try in the meantime: 1. Use .stateChangesOnly, so that you will only get and email if the state of the alert changes. 2. Change the every time to 10m to simply check the disk usage less frequently, not ideal but will work. On Wednesday, November 2, 2016 at 8:25:54 AM UTC-6, kid...@gmail.com wrote: > > Hi, so I'm using the query below to send a critical alert for disk usage. > As I understand it, > > With a period of 10s, and every 10s, My understanding is , grab 10 seconds > worth of data, and do this every 10 seconds. > > This will allow me to check the average disk usage for every 10 seconds, > with 10 seconds worth of data. > > How would I go about adding, only send this critical alert every 10/20 > minutes? > > // Parameters > var crit = 92 > var period = 10s > var every = 10s > > // Dataframe > var data = stream > |from() > .database('telegraf') > .retentionPolicy('autogen') > .measurement('disk') > .groupBy('host') > |window() > .period(period) > .every(every) > |mean('used_percent') > .as('stat') > > // Thresholds > var alert = data > |alert() > .id('{{ index .Tags "host"}}/disk_used') > .message('{{ .ID }}:{{ index .Fields "stat" }}') > .crit(lambda: "stat" > crit) > > // Alert > alert > .log('/tmp/disk_alert_log.txt') > > -- 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 influxdb+unsubscr...@googlegroups.com. To post to this group, send email to influxdb@googlegroups.com. 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/fbcf5b4d-7cd1-491f-82f8-1f153256f7cf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.