# AlertManager configuration — LLMHosts.com (T-12)
#
# Placeholder receivers — replace with real endpoints for production alerting.
# See monitoring/README.md for configuration instructions.

global:
  resolve_timeout: 5m

route:
  receiver: "default-webhook"
  group_by: ["alertname", "severity"]
  group_wait: 10s
  group_interval: 10m
  repeat_interval: 1h

  routes:
    - receiver: "critical-webhook"
      match:
        severity: critical
      group_wait: 5s
      repeat_interval: 30m
      continue: false

receivers:
  - name: "default-webhook"
    # TODO: configure email or webhook when notification endpoint is ready
    # email_configs:
    #   - to: "alerts@llmhosts.com"
    #     send_resolved: true

  - name: "critical-webhook"
    # TODO: configure Slack or PagerDuty for critical alerts
    # slack_configs:
    #   - api_url: "https://hooks.slack.com/services/YOUR/ACTUAL/WEBHOOK"
    #     channel: "#llmhosts-alerts"
    #     send_resolved: true

inhibit_rules:
  - source_match:
      severity: "critical"
    target_match:
      severity: "warning"
    equal: ["alertname", "instance"]
