kolla-ansible/ansible/roles/prometheus/templates/prometheus-alertmanager.yml.j2
Pierre Riteau c1155a2879 Add support for deploying prometheus-msteams
This can be used to forward Prometheus Alertmanager notifications to
Microsoft Teams.

Change-Id: I563f2438b3cb0895606b029b5269ce2e50c413e3
Depends-On: https://review.opendev.org/c/openstack/kolla/+/812678
2022-08-10 13:21:41 +02:00

32 lines
877 B
Django/Jinja

global:
resolve_timeout: 5m
smtp_require_tls: true
route:
receiver: default-receiver
group_wait: 10s
group_interval: 5m
repeat_interval: 3h
{% if enable_prometheus_msteams | bool %}
routes:
- receiver: 'prometheus-msteams'
{% endif %}
receivers:
- name: default-receiver
{% if enable_vitrage | bool and enable_vitrage_prometheus_datasource | bool %}
webhook_configs:
- send_resolved: true
url: '{{ vitrage_public_endpoint }}/v1/event'
http_config:
basic_auth:
username: '{{ keystone_admin_user }}'
password: '{{ keystone_admin_password }}'
{% endif %}
{% if enable_prometheus_msteams | bool %}
- name: 'prometheus-msteams'
webhook_configs:
- send_resolved: true
url: 'http://localhost:{{ prometheus_msteams_port }}/alertmanager'
{% endif %}
templates:
- '/etc/prometheus/*.tmpl'