mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-11-02 17:11:44 +01:00
*: 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:
parent
1973936fd3
commit
3e7d8b391a
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user