You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prodwork01-argocd/templates/secret_alertmanager-config....

51 lines
1.2 KiB
YAML

apiVersion: v1
stringData:
alertmanager.yaml: |
global:
resolve_timeout: 15m
route:
group_by: ['alertname']
group_wait: 1m
group_interval: 5m
repeat_interval: 3h
receiver: devnull
routes:
- receiver: prometheus-msteams
match:
severity: none
- receiver: prometheus-msteams
match:
severity: info
continue: true
- receiver: prometheus-msteams
match:
severity: warning
continue: true
- receiver: prometheus-msteams
match:
severity: critical
continue: true
inhibit_rules:
- source_match:
alertname: "Watchdog"
target_match:
alertname: "KubeSchedulerDown"
equal: [prometheus]
- source_match:
alertname: "Watchdog"
target_match:
alertname: "KubeControllerManagerDown"
equal: [prometheus]
receivers:
- name: devnull
- name: prometheus-msteams
webhook_configs:
- url: "http://prometheus-msteams:2000/alert"
send_resolved: true
kind: Secret
metadata:
name: {{ .Values.bootstrap.alertmanager_config_secret_name }}
namespace: monitoring
type: Opaque