summaryrefslogtreecommitdiff
path: root/roles/monitoring/alerta/templates/alertad.conf.j2.j2
blob: 54089a765c391f203e474b4f5945f86d1a1f7321 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 %}