Use matchers in routing tree

This commit is contained in:
Andrei Nistor committed 2021-11-16 14:14:35 +02:00
1 parent 72f6ff3758
commit 30175b5e3c
2 files changed
+6 -6

No files matched your search

@@ -42,8 +42,8 @@ local defaults = {
repeat_interval: '12h',
receiver: 'Default',
routes: [
{ receiver: 'Watchdog', match: { alertname: 'Watchdog' } },
{ receiver: 'Critical', match: { severity: 'critical' } },
{ receiver: 'Watchdog', matchers: ['alertname = Watchdog'] },
{ receiver: 'Critical', matchers: ['severity = critical'] },
],
},
receivers: [
+4 -4
View File
@@ -40,10 +40,10 @@ stringData:
"receiver": "Default"
"repeat_interval": "12h"
"routes":
- "match":
"alertname": "Watchdog"
- "matchers":
- "alertname = Watchdog"
"receiver": "Watchdog"
- "match":
"severity": "critical"
- "matchers":
- "severity = critical"
"receiver": "Critical"
type: Opaque