You've got the idea, although I'd have just specified a default (`local alert_throttle =
read_config("alert_throttle") or 3600`) and not used a conditional. Also, with what you
have, the `or nil` is redundant, since it will only be hit when
`read_config("alert_throttle")` returns a nil.
But those are nits, clearly; what you have works. :)
-r
On 04/02/2015 03:04 PM, M GS wrote:
Thanks Rob, this is what I came up with to set the throttle in seconds:
https://github.com/mozilla-services/heka/compare/dev...hoffoo:http_status_alert_throttle_config
On Thu, Apr 2, 2015 at 2:27 PM, Rob Miller <[email protected]
<mailto:[email protected]>> wrote:
No, not currently, sorry. It would be trivially easy to add an
option to the http status graph filter to allow you to set the alert
throttle in the filter's configuration, however. It would consist of
two lines of code. Maybe you want to take a stab at it?
-r
On 03/30/2015 04:12 PM, M GS wrote:
I am setting up alerts on anomalies and pretty much following the
getting started guide.
Is there a way to change the alert module's throttle timeout
globally(for all alerts)? I am using it with http_status.lua
_________________________________________________
Heka mailing list
[email protected] <mailto:[email protected]>
https://mail.mozilla.org/__listinfo/heka
<https://mail.mozilla.org/listinfo/heka>
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka