1
0
forked from k-space/kube

prometheus-operator: Post only critical alerts to Slack

This commit is contained in:
Lauri Võsandi 2022-12-21 14:13:57 +02:00
parent 960103eb40
commit 3586309c4e

View File

@ -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: