global: smtp_smarthost: 'localhost:587' smtp_from: 'alerts@silverlabs.uk' route: group_by: ['alertname'] group_wait: 10s group_interval: 10s repeat_interval: 1h receiver: 'web.hook' routes: - match: severity: critical receiver: 'critical-alerts' - match: severity: warning receiver: 'warning-alerts' receivers: - name: 'web.hook' webhook_configs: - url: 'http://127.0.0.1:5001/' - name: 'critical-alerts' email_configs: - to: 'admin@silverlabs.uk' subject: 'CRITICAL: LittleShop Alert - {{ .GroupLabels.alertname }}' body: | {{ range .Alerts }} Alert: {{ .Annotations.summary }} Description: {{ .Annotations.description }} Labels: {{ range .Labels.SortedPairs }}{{ .Name }}: {{ .Value }} {{ end }} {{ end }} - name: 'warning-alerts' email_configs: - to: 'admin@silverlabs.uk' subject: 'WARNING: LittleShop Alert - {{ .GroupLabels.alertname }}' body: | {{ range .Alerts }} Alert: {{ .Annotations.summary }} Description: {{ .Annotations.description }} Labels: {{ range .Labels.SortedPairs }}{{ .Name }}: {{ .Value }} {{ end }} {{ end }} inhibit_rules: - source_match: severity: 'critical' target_match: severity: 'warning' equal: ['alertname', 'dev', 'instance']