Plugin Statistic and Termination Monitor
This plugin has configuration support to monitor process_message failure rates and plugin termination.
1. Sample Configuration
filename = 'plugin_monitor.lua'
message_matcher = 'Type =~ "^hindsight%.plugin%."'
preserve_data = false
process_message_inject_limit = 1
alert = {
disabled = false,
prefix = true,
throttle = 90,
modules = {
email = {recipients = {"trink@mozilla.com"}},
},
thresholds = {
["analysis.example"] = { -- plugin name
process_message_failures = { -- alert specific configuration
-- alert when percentage of recent failed messages exceeds this
percent = 5,
-- but only if this many messages have been processed since the last tick
minimum_sample = 100
},
terminated = true -- alert if terminated
},
["*"] = {
terminated = true
},
}
}
source code: plugin_monitor.lua