summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/alertmanager/templates/alertmanager.yml.j2
blob: 3c7fb37e6cfd996812a3b0c7f7024a5d09110098 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# {{ ansible_managed }}

global:
  smtp_smarthost: '{{ promethues_alertmanager_smtp.smarthost }}'
  smtp_from: '{{ promethues_alertmanager_smtp.from }}'
  smtp_require_tls: {{ promethues_alertmanager_smtp.require_tls | ternary('true', 'false') }}
{% if 'auth' in promethues_alertmanager_smtp %}
  smtp_auth_username: '{{ promethues_alertmanager_smtp.auth.username }}'
  smtp_auth_password: '{{ promethues_alertmanager_smtp.auth.password }}'
{% endif %}

route:
  {{ prometheus_alertmanager_route | to_nice_yaml(indent=2) | indent(2) }}
receivers:
  {{ prometheus_alertmanager_receivers | to_nice_yaml(indent=2) | indent(2) }}