mirror of
https://github.com/alerta/alerta.git
synced 2025-02-04 21:58:31 +00:00
69bebd3ded
* Push app config to plugin methods for per-alert config * Add get_config() helper method to plugins * Explicitly pass kwargs to avoid race conditions using self * Test config variable precedence |
||
---|---|---|
.. | ||
routing | ||
transient | ||
README.md |
Plugin Examples
Some example plugins that can be used as a starting point for custom development:
-
routing rules plugin that uses different notification paths for different customers. ie. PagerDuty for Tier 1 customers, Slack for Tier 2 and nothing for Tier 3 customers.
-
transient alert plugin based on the
is_flapping()
helper method will reject alerts that have repeatedly changed from an alert severity tonormal
within a short period of time. eg. more than twice in 2 minutes
See the alerta contrib repo for a comprehensive list of plugins that can be used as-is or as examples for your own environment.