Documentation
global: resolve_timeout: 1m smtp_smarthost: 'email-smtp.ap-south-1.amazonaws.com:587' # Shared SMTP settings smtp_from: '[email protected]' # "From" email address for all notifications smtp_auth_username: '' # Replace with your actual SES username smtp_auth_password: '' # Replace with your actual SES password smtp_auth_identity: ''
route:
group_by: ['job'] # Group alerts by the job label
group_wait: 1m # Wait up to 10 seconds before sending the first alert in a group
group_interval: 3m # Send new alerts in the group every 30 seconds if new ones arrive
repeat_interval: 24h # Re-send the alert every 24 hours if it’s still firing
receiver: 'default-notifications'
Sub-route for InstanceDown alerts
routes:
- match:
alertname: 'InstanceDown' # Handle InstanceDown alert separately
environment: 'prod' # Handle InstanceDown alert separately for production
receiver: 'instance-down'
continue: true # Continue processing this alert after sending to
instance-down
receivers:
Receiver for all other alerts (e.g., High CPU, High Memory) and InstanceDown for Ahmad
-
name: 'default-notifications' email_configs:
- to: '[email protected]' send_resolved: true
-
name: 'instance-down' email_configs:
- to: '[email protected],[email protected],[email protected]' send_resolved: true