35 lines
691 B
YAML
35 lines
691 B
YAML
global:
|
|
resolve_timeout: 5m
|
|
|
|
receivers:
|
|
- name: 'testing'
|
|
webhook_configs:
|
|
- url: 'http://127.0.0.1:5001/'
|
|
- name: 'prod'
|
|
webhook_configs:
|
|
- url: 'http://127.0.0.1:5001/'
|
|
- name: 'kafka'
|
|
webhook_configs:
|
|
- url: 'http://127.0.0.1:5001/'
|
|
|
|
route:
|
|
group_by: ['alertname']
|
|
group_wait: 10s
|
|
group_interval: 10s
|
|
repeat_interval: 1h
|
|
receiver: 'prod'
|
|
routes:
|
|
- match:
|
|
env: 'testing'
|
|
receiver: 'testing'
|
|
group_by: ['alertname', 'service']
|
|
- match:
|
|
env: 'prod'
|
|
receiver: 'prod'
|
|
group_by: ['alertname', 'service', 'cluster']
|
|
continue: true
|
|
- match:
|
|
kafka: 'yes'
|
|
receiver: 'kafka'
|
|
group_by: ['alertname', 'service', 'cluster']
|