*: 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 2020-01-29 18:31:48 +01:00
parent 1973936fd3
commit 3e7d8b391a
No known key found for this signature in database
GPG Key ID: 7741A52782A90069
2 changed files with 23 additions and 6 deletions

View File

@ -40,19 +40,31 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
group_wait: '30s',
group_interval: '5m',
repeat_interval: '12h',
receiver: 'null',
receiver: 'Default',
routes: [
{
receiver: 'null',
receiver: 'Watchdog',
match: {
alertname: 'Watchdog',
},
},
{
receiver: 'Critical',
match: {
severity: 'critical',
},
},
],
},
receivers: [
{
name: 'null',
name: 'Default',
},
{
name: 'Watchdog',
},
{
name: 'Critical',
},
],
},

View File

@ -22,16 +22,21 @@ stringData:
"target_match_re":
"severity": "info"
"receivers":
- "name": "null"
- "name": "Default"
- "name": "Watchdog"
- "name": "Critical"
"route":
"group_by":
- "namespace"
"group_interval": "5m"
"group_wait": "30s"
"receiver": "null"
"receiver": "Default"
"repeat_interval": "12h"
"routes":
- "match":
"alertname": "Watchdog"
"receiver": "null"
"receiver": "Watchdog"
- "match":
"severity": "critical"
"receiver": "Critical"
type: Opaque