Skip to content

Alerting

Alerting is best-effort and never blocks the request path.

Rules

RuleMetricDescription
high-error-rateerror_rateFires when error rate exceeds threshold over duration
budget-exhaustedbudget_thresholdFires when daily/session budget approaches limit

Channels

ChannelConfig KeyDescription
Slackslack_webhook_urlIncoming webhook URL
Webhookwebhook_urlGeneric HTTP endpoint
Emailemail_smtpSMTP server configuration

Example

yaml
alerting:
  slack_webhook_url: "https://hooks.slack.com/services/..."
  rules:
    - name: "high-error-rate"
      metric: "error_rate"
      threshold: 0.1
      duration: "5m"
      channels: ["slack"]
      severity: "critical"

Released under the MIT License.