diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-11 20:58:38 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-11 20:58:38 +0100 |
commit | 4930ff68c7d699611511aaabd2c2ebe585207051 (patch) | |
tree | 8f4ec6f7d588a9938138a65a470ad8c2d044e8ae /roles/monitoring/alerta/templates/alertad.conf.j2.j2 | |
parent | improvements and fixes for alerta role (diff) |
alerta: improve support for mailer
Diffstat (limited to 'roles/monitoring/alerta/templates/alertad.conf.j2.j2')
-rw-r--r-- | roles/monitoring/alerta/templates/alertad.conf.j2.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/monitoring/alerta/templates/alertad.conf.j2.j2 b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 new file mode 100644 index 00000000..54089a76 --- /dev/null +++ b/roles/monitoring/alerta/templates/alertad.conf.j2.j2 @@ -0,0 +1,19 @@ +DEBUG = {{ '{{' }} 'True' if env.DEBUG else 'False' {{ '}}' }} +SECRET = "{{ '{{' }} env.SECRET_KEY {{ '}}' }}" +ALERT_TIMEOUT = 86400 +HEARTBEAT_TIMEOUT = 7200 +PLUGINS = ['{{ alerta_plugins | join("', '") }}'] +DEFAULT_ENVIRONMENT = 'unknown' +ALLOWED_ENVIRONMENTS = ['unknown', 'chaos-at-.*'] +{% if 'heartbeat' in alerta_plugins %} +HEARTBEAT_EVENTS = ['PrometheusAlertmanagerE2eDeadManSwitch'] +{% endif %} +{% if 'prometheus' in alerta_plugins %} +ALERTMANAGER_USERNAME = 'alerta' +ALERTMANAGER_PASSWORD = 'alerta' +ALERTMANAGER_SILENCE_FROM_ACK = True +ALERTMANAGER_USE_EXTERNALURL_FOR_SILENCES = True +{% endif %} +{% if 'amqp' in alerta_plugins %} +AMQP_URL = 'redis://localhost:6379/' +{% endif %} |