mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Internal packages are supported by Go 1.5+, any package in /internal/ dir is only importable from the same repo. This will cleanup main dir a bit and provide better namespace for unsee subpackages
31 lines
678 B
YAML
31 lines
678 B
YAML
route:
|
|
group_by: ['alertname']
|
|
group_wait: 15s
|
|
group_interval: 35s
|
|
repeat_interval: 999h
|
|
receiver: 'default'
|
|
routes:
|
|
- receiver: 'by-cluster-service'
|
|
group_by: ['alertname', 'cluster', 'service']
|
|
match_re:
|
|
alertname: .*
|
|
continue: true
|
|
- receiver: 'by-name'
|
|
group_by: [alertname]
|
|
match_re:
|
|
alertname: .*
|
|
continue: true
|
|
|
|
inhibit_rules:
|
|
- source_match:
|
|
severity: 'critical'
|
|
target_match:
|
|
severity: 'warning'
|
|
# Apply inhibition if the alertname is the same.
|
|
equal: ['alertname', 'cluster', 'service']
|
|
|
|
receivers:
|
|
- name: 'default'
|
|
- name: 'by-cluster-service'
|
|
- name: 'by-name'
|