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

66 lines
1.2 KiB
YAML

apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: alertmanager-config
namespace: monitoring
spec:
receivers:
- name: gotify-bridge
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