Improving alerting configuration
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user