fischerX/infra/monitoring/alertmanager/alertmanager.yml

50 lines
1.1 KiB
YAML

global:
resolve_timeout: 5m
smtp_smarthost: 'smtp.example.com:587'
smtp_from: 'alertmanager@fischerx.com'
smtp_auth_username: 'alertmanager@fischerx.com'
smtp_auth_password: ''
smtp_require_tls: true
route:
receiver: 'default'
group_by: ['alertname', 'job']
group_wait: 30s
group_interval: 5m
repeat_interval: 1h
routes:
- match:
severity: critical
receiver: 'critical-notifications'
continue: true
- match:
severity: warning
receiver: 'warning-notifications'
continue: true
receivers:
- name: 'default'
email_configs:
- to: 'devops@fischerx.com'
send_resolved: true
- name: 'critical-notifications'
email_configs:
- to: 'devops@fischerx.com'
send_resolved: true
webhook_configs:
- url: 'http://webhook.example.com/critical'
send_resolved: true
- name: 'warning-notifications'
email_configs:
- to: 'dev@fischerx.com'
send_resolved: true
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'job', 'instance']