summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-mon.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-03-05 21:55:14 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-03-05 21:55:14 +0100
commit9117d620ff6908ce92318db216403dab68c496ed (patch)
treeebd993e77e8230e8b300e5ff204d826dc1189cc9 /inventory/host_vars/ch-mon.yml
parentprometheus: cleanups and fixes in prep for alerta (diff)
initial commit for alerta role
Diffstat (limited to 'inventory/host_vars/ch-mon.yml')
-rw-r--r--inventory/host_vars/ch-mon.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-mon.yml b/inventory/host_vars/ch-mon.yml
index c16398bc..bd952fc8 100644
--- a/inventory/host_vars/ch-mon.yml
+++ b/inventory/host_vars/ch-mon.yml
@@ -146,6 +146,23 @@ prometheus_alertmanager_auth_users:
server: "{{ vault_prometheus_alertmanager_auth_user_passwords['server'] }}"
admin: "{{ vault_prometheus_alertmanager_auth_user_passwords['admin'] }}"
+prometheus_alertmanager_route:
+ receiver: alerta
+ group_by: ['...']
+ group_wait: 0
+ group_interval: 10s
+ repeat_interval: 5m
+
+prometheus_alertmanager_receivers:
+ - name: alerta
+ webhook_configs:
+ - url: http://192.168.32.1:8080/api/webhooks/prometheus
+ send_resolved: true
+ http_config:
+ basic_auth:
+ username: admin
+ password: alerta
+
grafana_secret_key: "{{ vault_grafana_secret_key }}"