make default message type CRITICAL

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

View File

@ -44,7 +44,7 @@ alertmanager_repeat_interval: '1h'
alertmanager_victorops_api_key: ~
alertmanager_victorops_service_url: ~
alertmanager_victorops_routing_key: ~
alertmanager_victorops_message_type: 'ERROR'
alertmanager_victorops_message_type: 'CRITICAL' # CRITICAL, WARNING, INFO
alertmanager_victorops_state_message: '{% raw %}Alert: {{ .CommonLabels.alertname }}. Summary:{{ .CommonAnnotations.summary }}. RawData: {{ .CommonLabels }}{% endraw %}'
# For discovery of prometheus master nodes

View File

@ -11,9 +11,9 @@ global:
victorops_api_url: '{{ alertmanager_victorops_service_url | mandatory }}'
route:
# Default destination fo all alerts
# Default destination fo all alerts not matching any routes.
receiver: 'admin-email'
# How to group together alerts
# How to group together alerts.
group_by: {{ alertmanager_group_by | to_yaml }}
# Wait this much before initial notification to group them.
group_wait: '{{ alertmanager_group_wait | mandatory }}'
@ -23,7 +23,7 @@ route:
repeat_interval: '{{ alertmanager_repeat_interval | mandatory }}'
routes:
# send all notifications to slack too
# send all notifications to VictorOps.
- receiver: 'victorops-alerts'
receivers: