Skip to content
Snippets Groups Projects
Commit 897107f7 authored by godog's avatar godog
Browse files

Merge branch 'am-email' into 'master'

prometheus: alertmanager email flag

See merge request !58
parents 7d5b68b8 cb38facb
Branches
No related tags found
1 merge request!58prometheus: alertmanager email flag
--- ---
# Destination (To:) of alert emails. # Destination (To:) of alert emails.
alert_email: "root@{{ domain }}" alert_email: ""
# Alertmanager SMTP parameters. # Alertmanager SMTP parameters.
alertmanager_smtp_from: "prometheus@{{ domain }}" alertmanager_smtp_from: "prometheus@{{ domain }}"
......
...@@ -57,6 +57,8 @@ inhibit_rules: ...@@ -57,6 +57,8 @@ inhibit_rules:
receivers: receivers:
- name: default - name: default
- name: 'alert-email' - name: 'alert-email'
{% if alert_email %}
email_configs: email_configs:
- to: '{{ alert_email }}' - to: '{{ alert_email }}'
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment