diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-03-05 21:55:14 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-03-05 21:55:14 +0100 |
commit | 9117d620ff6908ce92318db216403dab68c496ed (patch) | |
tree | ebd993e77e8230e8b300e5ff204d826dc1189cc9 /inventory/host_vars | |
parent | prometheus: cleanups and fixes in prep for alerta (diff) |
initial commit for alerta role
Diffstat (limited to 'inventory/host_vars')
-rw-r--r-- | inventory/host_vars/ch-apps.yml | 3 | ||||
-rw-r--r-- | inventory/host_vars/ch-mon.yml | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-apps.yml b/inventory/host_vars/ch-apps.yml index bdbac832..ed2aeb70 100644 --- a/inventory/host_vars/ch-apps.yml +++ b/inventory/host_vars/ch-apps.yml @@ -113,3 +113,6 @@ kubernetes_version: 1.23.2 kubernetes_container_runtime: docker kubernetes_standalone_max_pods: 42 kubernetes_standalone_cni_variant: with-portmap + + +alerta_base_path: /srv/storage/alerta 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 }}" |