global: resolve_timeout: 5m route: receiver: telegram-warning group_by: [alertname, instance] group_wait: 30s group_interval: 10m repeat_interval: 6h routes: - matchers: - severity="critical" receiver: telegram-critical repeat_interval: 2h inhibit_rules: - source_matchers: - alertname="ExporterDown" target_matchers: - alertname="LanServiceUnavailable" equal: [instance] receivers: - name: telegram-warning telegram_configs: - bot_token: "{{ monitoring_telegram_bot_token }}" chat_id: {{ monitoring_telegram_chat_id }} send_resolved: true message: |- [{{ "{{" }} .Status | toUpper {{ "}}" }}] {{ "{{" }} .CommonLabels.alertname {{ "}}" }} {{ "{{" }} .CommonAnnotations.summary {{ "}}" }} - name: telegram-critical telegram_configs: - bot_token: "{{ monitoring_telegram_bot_token }}" chat_id: {{ monitoring_telegram_chat_id }} send_resolved: true message: |- [{{ "{{" }} .Status | toUpper {{ "}}" }}] CRITICAL: {{ "{{" }} .CommonLabels.alertname {{ "}}" }} {{ "{{" }} .CommonAnnotations.summary {{ "}}" }}