groups: - name: messenger rules: - alert: HighApiErrorRate expr: sum(rate(http_requests_total{status_class="5xx"}[1m])) / clamp_min(sum(rate(http_requests_total[1m])),0.001) > 0.05 for: 15s labels: {severity: warning} annotations: summary: Business API 5xx exceeds 5% in 1 minute runbook: Check postgres.query error spans, DB pool and request logs. Restore DB and confirm resolved. - alert: QueueLagGrowing expr: max(queue_oldest_age_seconds) > 15 for: 15s labels: {severity: warning} annotations: summary: Oldest unfinished attachment is older than 15 seconds runbook: Check worker capacity/busy, job outcomes and consumer spans. Restore worker and confirm queue drains.