summaryrefslogtreecommitdiff
path: root/roles/monitoring/alerta
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-03-06 00:31:22 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-03-06 00:31:22 +0100
commit1bbe8582d9650eda816f9c596d8cd3b3fe9998e7 (patch)
treea62a8754913719f193ac70bb59f9bdcba2e547ba /roles/monitoring/alerta
parentinitial commit for alerta role (diff)
alerta: test alertmanager silence integration
Diffstat (limited to 'roles/monitoring/alerta')
-rw-r--r--roles/monitoring/alerta/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/monitoring/alerta/tasks/main.yml b/roles/monitoring/alerta/tasks/main.yml
index af7530d8..a4fd3df9 100644
--- a/roles/monitoring/alerta/tasks/main.yml
+++ b/roles/monitoring/alerta/tasks/main.yml
@@ -12,10 +12,14 @@
content: |
DEBUG = {{ '{{' }} 'True' if env.DEBUG else 'False' {{ '}}' }}
SECRET = "{{ '{{' }} env.SECRET_KEY {{ '}}' }}"
- PLUGINS = ['reject', 'blackout', 'heartbeat']
+ PLUGINS = ['reject', 'blackout', 'heartbeat', 'prometheus']
DEFAULT_ENVIRONMENT = 'unknown'
ALLOWED_ENVIRONMENTS = ['unknown', 'chaos-at-.*']
HEARTBEAT_EVENTS = ['PrometheusAlertmanagerE2eDeadManSwitch']
+ ALERTMANAGER_USERNAME = 'alerta'
+ ALERTMANAGER_PASSWORD = 'alerta'
+ ALERTMANAGER_SILENCE_FROM_ACK = True
+ ALERTMANAGER_USE_EXTERNALURL_FOR_SILENCES = True
dest: "{{ alerta_base_path }}/config/alertad.conf.j2"
- name: install pod manifest