Skip to content

Commit 30175b5

Browse files
committed
Use matchers in routing tree
1 parent 72f6ff3 commit 30175b5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jsonnet/kube-prometheus/components/alertmanager.libsonnet

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ local defaults = {
4242
repeat_interval: '12h',
4343
receiver: 'Default',
4444
routes: [
45-
{ receiver: 'Watchdog', match: { alertname: 'Watchdog' } },
46-
{ receiver: 'Critical', match: { severity: 'critical' } },
45+
{ receiver: 'Watchdog', matchers: ['alertname = Watchdog'] },
46+
{ receiver: 'Critical', matchers: ['severity = critical'] },
4747
],
4848
},
4949
receivers: [

manifests/alertmanager-secret.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ stringData:
4040
"receiver": "Default"
4141
"repeat_interval": "12h"
4242
"routes":
43-
- "match":
44-
"alertname": "Watchdog"
43+
- "matchers":
44+
- "alertname = Watchdog"
4545
"receiver": "Watchdog"
46-
- "match":
47-
"severity": "critical"
46+
- "matchers":
47+
- "severity = critical"
4848
"receiver": "Critical"
4949
type: Opaque

0 commit comments

Comments
 (0)