Skip to content

Commit

Permalink
Use matchers in routing tree
Browse files Browse the repository at this point in the history
  • Loading branch information
andrein committed Nov 16, 2021
1 parent 72f6ff3 commit 30175b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jsonnet/kube-prometheus/components/alertmanager.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
8 changes: 4 additions & 4 deletions manifests/alertmanager-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 30175b5

Please sign in to comment.