receivers: - name: "null" - name: "pushover" pushover_configs: - html: true token_file: /etc/secrets/pushover_api_token user_key_file: /etc/secrets/pushover_api_userkey send_resolved: true priority: |- {{ if eq .Status "firing" }}1{{ else }}0{{ end }} url_title: View in Alert Manager title: |- [{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] {{ .CommonLabels.alertname }} message: |- {{- range .Alerts }} {{- if ne .Labels.severity "" }} Severity: {{ .Labels.severity }} {{- else }} Severity: N/A {{- end }} {{- if ne .Annotations.description "" }} Description: {{ .Annotations.description }} {{- else if ne .Annotations.summary "" }} Summary: {{ .Annotations.summary }} {{- else if ne .Annotations.message "" }} Message: {{ .Annotations.message }} {{- else }} Description: N/A {{- end }} {{- if gt (len .Labels.SortedPairs) 0 }} Details: {{- range .Labels.SortedPairs }} • {{ .Name }}: {{ .Value }} {{- end }} {{- end }} {{- end }} route: group_by: ["alertname", "job"] group_wait: 30s group_interval: 5m repeat_interval: 6h receiver: "pushover" routes: - receiver: "null" matchers: - alertname =~ "InfoInhibitor|Watchdog" - receiver: "pushover" matchers: - severity = critical continue: true inhibit_rules: - source_matchers: - severity = "critical" target_matchers: - severity = "warning" equal: ["alertname", "namespace"]