Mozilla Security Metrics Output Plugin
This output module collects metrics generated using the secmetrics Heka module, aggregates them, and outputs them based on the configured ticker interval.
If using email based output via the email_recipient option, ensure you have a valid email alert configuration. The email functionality in this sandbox makes use of the existing code present for email based alerting.
1. Sample Configuration
filename = "moz_security_metrics.lua"
message_matcher = "Type == 'secmetrics'"
ticker_interval = 28800
-- debug = false -- optional, if set emit aggregated stats in debug log
-- email_recipient = "riker@mozilla.com" -- optional, if set emit metrics to specified recipient
-- alert = { modules = { email = { ... } } } -- optional, required if email_recipient is set
source code: moz_security_metrics.lua