← back to Watches
monitoring/alertmanager/alertmanager.yml
56 lines
global:
resolve_timeout: 5m
# SMTP configuration for email alerts
smtp_smarthost: 'localhost:25'
smtp_from: 'alertmanager@omega-watches.local'
# Templates for notifications
templates:
- '/etc/alertmanager/templates/*.tmpl'
# The root route with all parameters
route:
receiver: 'default'
group_by: ['alertname', 'cluster', 'service']
group_wait: 10s
group_interval: 10s
repeat_interval: 12h
routes:
- match:
severity: critical
receiver: 'critical-alerts'
continue: true
- match:
severity: warning
receiver: 'warning-alerts'
# Inhibition rules
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'cluster', 'service']
# Receivers configuration
receivers:
- name: 'default'
webhook_configs:
- url: 'http://45.61.58.125:7500/api/webhook/alerts'
send_resolved: true
- name: 'critical-alerts'
webhook_configs:
- url: 'http://45.61.58.125:7500/api/webhook/critical'
send_resolved: true
# Add email configuration here if needed
# email_configs:
# - to: 'admin@example.com'
# headers:
# Subject: 'CRITICAL: {{ .GroupLabels.alertname }}'
- name: 'warning-alerts'
webhook_configs:
- url: 'http://45.61.58.125:7500/api/webhook/warning'
send_resolved: true