global:
resolve_timeout: 5m
route:
group_by: ["alertname", "namespace"]
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
receiver: "default"
routes:
- match:
severity: critical
receiver: "slack-critical"
- match:
severity: warning
receiver: "slack_warning"
receivers:
- name: "default"
webhook_configs: []
- name: "slack-critical"
slack_configs:
- api_url: "https://hooks.slack.com/services/T00000/B00000/XXXX"
channel: "#alerts-critical"
title: "[{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}"
text: "{{ .CommonAnnotations.summary }}"
- name: "slack-warning"
slack_configs:
- api_url: "https://hooks.slack.com/services/T00000/B00000/YYYY"
channel: "#alerts-warning"
title: "[{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}"
text: "{{ .CommonAnnotations.summary }}"