add more parameters to configure

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-12-07 12:43:15 +01:00
parent 79690b66ca
commit 5333cc9770
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 11 additions and 4 deletions

View File

@ -20,6 +20,12 @@ alertmanager_domain: ~
alertmanager_url: 'https://{{ alertmanager_domain | mandatory }}/'
alertmanager_admin_email: ~
# Route configuration
alertmanager_group_by: ['alertname', 'cluster']
alertmanager_group_wait: '30s'
alertmanager_group_interval: '3m'
alertmanager_repeat_interval: '1h'
# VictorOps paging service
alertmanager_victorops_api_key: ~
alertmanager_victorops_service_url: ~

View File

@ -1,3 +1,4 @@
---
global:
# SMTP authentication information.
smtp_from: '{{ alertmanager_smtp_from }}'
@ -13,13 +14,13 @@ route:
# Default destination fo all alerts
receiver: 'admin-email'
# How to group together alerts
group_by: ['alertname', 'cluster']
group_by: {{ alertmanager_group_by | to_yaml }}
# Wait this much before initial notification to group them.
group_wait: 30s
group_wait: '{{ alertmanager_group_wait }}'
# Wait before sending another batch for a group.
group_interval: 3m
group_interval: '{{ alertmanager_group_interval }}'
# Wait this much to resend notifications.
repeat_interval: 1h
repeat_interval: '{{ alertmanager_repeat_interval }}'
routes:
# send all notifications to slack too