k3s-cluster/kubernetes/main/apps/monitoring/kube-prometheus-stack/alertmanager-config.yaml

66 lines
1.2 KiB
YAML
Raw Permalink Normal View History

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
2023-04-30 01:07:15 +00:00
name: alertmanager-config
namespace: monitoring
spec:
receivers:
- name: gotify-bridge
2023-04-30 01:03:39 +00:00
webhookConfigs:
- url: http://alertmanager-gotify-bridge.monitoring:8080/gotify_webhook
sendResolved: false
route:
receiver: 'gotify-bridge'
groupBy:
- namespace
routes:
- receiver: null
matchers:
- matchType: "=~"
name: "alertname"
value: "InfoInhibitor|Watchdog"
continue: false
continue: false
groupWait: 30s
groupInterval: 5m
repeatInterval: 12h
inhibitRules:
- sourceMatch:
- matchType: "="
name: "severity"
value: "critical"
targetMatch:
- matchType: "=~"
name: "severity"
value: "warning|info"
equal:
- namespace
- alertname
- sourceMatch:
- matchType: "="
name: "severity"
value: "warning"
targetMatch:
- matchType: "="
name: "severity"
value: "info"
equal:
- namespace
- alertname
- sourceMatch:
- matchType: "="
name: "alertname"
value: "InfoInhibitor"
targetMatch:
- matchType: "="
name: "severity"
value: "info"
equal:
- namespace