Use matchers in routing tree

This commit is contained in:
Andrei Nistor
2021-11-16 14:11:30 +02:00
parent 72f6ff3758
commit 30175b5e3c
2 changed files with 6 additions and 6 deletions

View File

@@ -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: [