*: Add default receivers

This patch adds a few out of the box receivers that only need their
notification provider configuration filled in, instead of figuring out
all the wiring for critical alerts for example.
This commit is contained in:
Frederic Branczyk committed 2020-01-30 10:39:41 +01:00
1 parent 1973936fd3
commit 3e7d8b391a
2 files changed
+23 -6

No files matched your search

@@ -40,19 +40,31 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
group_wait: '30s', group_wait: '30s',
group_interval: '5m', group_interval: '5m',
repeat_interval: '12h', repeat_interval: '12h',
receiver: 'null', receiver: 'Default',
routes: [ routes: [
{ {
receiver: 'null', receiver: 'Watchdog',
match: { match: {
alertname: 'Watchdog', alertname: 'Watchdog',
}, },
}, },
{
receiver: 'Critical',
match: {
severity: 'critical',
},
},
], ],
}, },
receivers: [ receivers: [
{ {
name: 'null', name: 'Default',
},
{
name: 'Watchdog',
},
{
name: 'Critical',
}, },
], ],
}, },
+8 -3
View File
@@ -22,16 +22,21 @@ stringData:
"target_match_re": "target_match_re":
"severity": "info" "severity": "info"
"receivers": "receivers":
- "name": "null" - "name": "Default"
- "name": "Watchdog"
- "name": "Critical"
"route": "route":
"group_by": "group_by":
- "namespace" - "namespace"
"group_interval": "5m" "group_interval": "5m"
"group_wait": "30s" "group_wait": "30s"
"receiver": "null" "receiver": "Default"
"repeat_interval": "12h" "repeat_interval": "12h"
"routes": "routes":
- "match": - "match":
"alertname": "Watchdog" "alertname": "Watchdog"
"receiver": "null" "receiver": "Watchdog"
- "match":
"severity": "critical"
"receiver": "Critical"
type: Opaque type: Opaque