Improving alerting configuration

This commit is contained in:
2018-06-06 09:05:55 +02:00
parent 5f263995d0
commit 4195adfa6e
3 changed files with 19 additions and 11 deletions

View File

@ -5,6 +5,11 @@ global:
%if %%getVar('alSMTPAuth','non') == 'oui'
smtp_auth_username: '%%alSMTPUser'
smtp_auth_password: 'alSMTPPass'
%end if
%ïf %%getVar('alSMTPTLS','non') == 'oui'
smtp_require_tls: true
%else
smtp_require_tls: false
%end if
# The auth token for Hipchat.
#hipchat_auth_token: '1234556789'
@ -25,7 +30,7 @@ route:
# When a new group of alerts is created by an incoming alert, wait at
# least 'group_wait' to send the initial notification.
# This way ensures that you get multiple alerts for the same group that start
# firing shortly after another are batched together on the first
# firing shortly after another are batched together on the first
# notification.
group_wait: 30s

View File

@ -41,11 +41,11 @@ scrape_configs:
]
%end if
#alerting:
# alertmanagers:
# - scheme: https
# static_configs:
# - targets:
# - "1.2.3.4:9093"
# - "1.2.3.5:9093"
# - "1.2.3.6:9093"
%if %%getVar('activerAlertmanager','non') == 'oui'
alerting:
alertmanagers:
- scheme: http
static_configs:
- targets:
- "%%nom_domaine_machine:9093"
%end if