# Links & References: # - https://prometheus.io/docs/alerting/latest/configuration/ # - https://github.com/prometheus/alertmanager/blob/48a99764a1fc9279fc828de83e7a03ae2219abc7/doc/examples/simple.yml route: receiver: 'ccchh-infrastructure-alerts' group_by: [ "alertname", "site", "type", "hypervisor" ] group_wait: 30s group_interval: 5m repeat_interval: 6h routes: - matchers: - org = "ccchh" - severity = "critical", receiver: ntfy-ccchh-critical repeat_interval: 18h - matchers: - org = "ccchh" - severity =~ "info|warning", receiver: ntfy-ccchh repeat_interval: 36h - matchers: - org = "fux" - severity = "critical", receiver: ntfy-fux-critical repeat_interval: 18h - matchers: - org = "fux" - severity =~ "info|warning", receiver: ntfy-fux repeat_interval: 36h - matchers: - org = "ccchh" - severity =~ "info|warning|critical" receiver: ccchh-infrastructure-alerts repeat_interval: 6h templates: - "/etc/alertmanager/templates/*.tmpl" receivers: - name: "ccchh-infrastructure-alerts" telegram_configs: - send_resolved: true bot_token: {{ secret__alertmanager_telegram_bot_token }} chat_id: -1002434372415 parse_mode: HTML message: {{ "'{{ template \"alert-message.telegram.ccchh\" . }}'" }} - name: "ntfy-ccchh-critical" webhook_configs: - url: "http://ntfy-alertmanager-ccchh-critical:8000" - name: "ntfy-fux-critical" webhook_configs: - url: "http://ntfy-alertmanager-fux-critical:8001" - name: "ntfy-ccchh" webhook_configs: - url: "http://ntfy-alertmanager-ccchh:8010" - name: "ntfy-fux" webhook_configs: - url: "http://ntfy-alertmanager-fux:8011"