diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-16 21:39:40 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-16 21:39:40 +0100 |
commit | 8abc6406b3365fc8d6f25e293aee2b56c4ca611a (patch) | |
tree | 7d9f4643fa16c3b2e7960894fe78159bdc7158b3 /roles/monitoring/alerta/templates | |
parent | zfs/syncoid-autosuspend: also check for resilvering (diff) |
alerta: tweak blackout settings
Diffstat (limited to 'roles/monitoring/alerta/templates')
-rw-r--r-- | roles/monitoring/alerta/templates/alertad.conf.j2.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/monitoring/alerta/templates/alertad.conf.j2.j2 b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 index b013f480..cf0b2426 100644 --- a/roles/monitoring/alerta/templates/alertad.conf.j2.j2 +++ b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 @@ -5,6 +5,10 @@ HEARTBEAT_TIMEOUT = {{ alerta_heartbeat_timeout }} DEFAULT_ENVIRONMENT = '{{ alerta_default_environment }}' ALLOWED_ENVIRONMENTS = ['{{ alerta_environments | join("', '") }}'] PLUGINS = ['{{ alerta_plugins | join("', '") }}'] +{% if 'blackout' in alerta_plugins %} +NOTIFICATION_BLACKOUT = {{ 'True' if alerta_plugin_blackout.set_status else 'False' }} +BLACKOUT_ACCEPT = ['{{ alerta_plugin_blackout.accept | join("', '") }}'] +{% endif %} {% if 'heartbeat' in alerta_plugins %} HEARTBEAT_EVENTS = ['{{ alerta_plugin_heartbeat.events | join("', '") }}'] {% endif %} |