# 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: - receiver: "null" matchers: - sendAlert = "false" - receiver: ntfy-ccchh-critical matchers: - org = "ccchh" - severity = "critical", repeat_interval: 18h continue: true - receiver: ntfy-ccchh matchers: - org = "ccchh" - severity =~ "info|warning", repeat_interval: 36h continue: true - receiver: ntfy-fux-critical matchers: - org = "fux" - severity = "critical", repeat_interval: 18h continue: true - receiver: email-fux-critical matchers: - org = "fux" - severity = "critical", repeat_interval: 36h continue: true - receiver: ntfy-fux matchers: - org = "fux" - severity =~ "info|warning", repeat_interval: 36h continue: true - receiver: ccchh-infrastructure-alerts matchers: - org = "ccchh" - severity =~ "info|warning|critical" templates: - "/etc/alertmanager/templates/*.tmpl" receivers: - name: "null" - 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" - name: "email-fux-critical" email_configs: - send_resolved: true to: "stb@lassitu.de" from: "alert-manager@hamburg.ccc.de" smarthost: "cow.hamburg.ccc.de:587" auth_username: "alert-manager@hamburg.ccc.de" auth_password: {{ secret__alert_manager_email_password }}