We usually throttle them at the source like 
https://github.com/mozilla-services/heka/blob/dev/sandbox/lua/filters/http_status.lua#L85
 
but there is nothing to prevent you from adding global throttling or 
aggregation in the alert encoder (by host, plugin, application... whatever) 

Trink 

----- Original Message -----

> From: "Klaus Post" <[email protected]>
> To: [email protected]
> Sent: Wednesday, November 19, 2014 6:15:39 AM
> Subject: [heka] Throttling email alerts

> Hi!

> I have been looking all through the documentation and source code to see if I
> could find a way to throttle email sending.

> I have a simple setup, where I have a simple matcher for severity <= 3 like
> this:

> [RstEncoder]

> [ErrorAlert]
> type = "SmtpOutput"
> message_matcher = "Severity <= 3"
> send_from = " [email protected] "
> send_to = [" [email protected] "]
> auth = "none"
> host = " xxx.com:25 "
> encoder = "RstEncoder"

> However, there is the issue that if something goes wrong, various subsystems
> like syslog, individual applications start spewing out errors at a steady
> rate, often resulting in thousands of mails being sent.

> Is there a way to limit the number of emails with configuration or does
> anyone have a lua script that can do this?

> Also, thanks for the great work on heka!

> Regards, Klaus Post

> http://www.klauspost.com

> _______________________________________________
> Heka mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/heka
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to