forked from k-space/kube
prometheus-operator: Post only critical alerts to Slack
This commit is contained in:
parent
960103eb40
commit
3586309c4e
@ -7,7 +7,14 @@ metadata:
|
|||||||
app.kubernetes.io/name: alertmanager
|
app.kubernetes.io/name: alertmanager
|
||||||
spec:
|
spec:
|
||||||
route:
|
route:
|
||||||
receiver: 'slack-notifications'
|
routes:
|
||||||
|
- continue: false
|
||||||
|
receiver: slack-notifications
|
||||||
|
matchers:
|
||||||
|
- matchType: "="
|
||||||
|
name: severity
|
||||||
|
value: critical
|
||||||
|
receiver: 'null'
|
||||||
receivers:
|
receivers:
|
||||||
- name: 'slack-notifications'
|
- name: 'slack-notifications'
|
||||||
slackConfigs:
|
slackConfigs:
|
||||||
@ -33,9 +40,12 @@ kind: Alertmanager
|
|||||||
metadata:
|
metadata:
|
||||||
name: alertmanager
|
name: alertmanager
|
||||||
spec:
|
spec:
|
||||||
alertmanagerConfigSelector:
|
alertmanagerConfigMatcherStrategy:
|
||||||
matchLabels:
|
type: None
|
||||||
app.kubernetes.io/name: alertmanager
|
alertmanagerConfigNamespaceSelector: {}
|
||||||
|
alertmanagerConfigSelector: {}
|
||||||
|
alertmanagerConfiguration:
|
||||||
|
name: alertmanager
|
||||||
secrets:
|
secrets:
|
||||||
- slack-secrets
|
- slack-secrets
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
|
Loading…
Reference in New Issue
Block a user