Repository navigation
feat(monitoring): comprehensive alerting overhaul — severity, cleanup, traffic-zero, instatus - #9554
Conversation
6 new critical-severity alert rules detect when services drop to zero traffic, covering the gap that missed both the parakeet https outage (8h) and previous backend-listen incidents. Rules: parakeet RPS zero, backend-listen LB zero, backend-listen pods not ready, pusher WS connections zero, backend Cloud Run zero, deepgram active requests zero. Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Fix backend-listen LB query: use exact backend_target_name filter (custom-domains-api-omi-me-backend-listen-49a4-be) instead of regex; backend-listen is on the external ALB, not internal ILB - Add deepgram-engine pods-not-ready companion rule since engine_active_requests metric currently returns 0 series - Add caveat note on deepgram active requests rule about stale metric Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add namespace="prod-omi-backend" to parakeet_requests_total, backend-listen replicas_ready, and deepgram-engine replicas_ready queries to avoid cross-environment matches (per CODEx review). Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
@beastoin This needs a fix before merge: Please push a follow-up and re-check the queries against prod Prometheus/Grafana before merge. by AI for @beastoin |
Deepgram engine runs in prod-omi-dg-self-hosted, not prod-omi-backend. Wrong namespace with or vector(0) would always return 0 → false positive page. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Scope engine_active_requests to prod-omi-dg-self-hosted namespace and pusher_active_ws_connections to prod-omi-backend namespace for precise metric targeting. Co-Authored-By: Claude Opus 4.6 <[email protected]>
…metheus
3-day metric verification revealed:
- engine_active_requests: metric does not exist in Prometheus
- kube_deployment_status_replicas_ready{deployment="deepgram-engine"}: returns
all zeros (deployment may not exist or uses different name)
Removed both deepgram rules to avoid permanent false-positive pages.
Will investigate correct metric/deployment names in Phase 3.
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Rule was paused and not actionable. Also adds severity=warning/ticket, noDataState=OK for non-critical rules, and instatus_component=plugins. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Removes paused latency rule (not user-facing). Unpauses enqueue_failed (data loss signal). Adds severity classification and instatus_component=api. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Removes: paused backend-listen 500 (duplicate of 5XX rule), paused deepgram active requests (metric doesn't exist). Adds backend_target_name filter to 4XX/5XX queries. Adds severity and instatus_component labels. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Backend 5XX=critical, 4XX/429=warning, RPS/instance/concurrent=ticket. Adds instatus_component=api and noDataState=OK for non-critical rules. Co-Authored-By: Claude Opus 4.6 <[email protected]>
5XX/LB-5XX=critical, OOMKill/latency/RPS=warning. All rules already had instatus_component=speech-processing. noDataState=OK for warnings. Co-Authored-By: Claude Opus 4.6 <[email protected]>
5XX=critical, 4XX/degraded-session/concurrent=warning, RPS/instance=ticket. Unpauses max concurrent requests (capacity signal). Adds instatus_component. Co-Authored-By: Claude Opus 4.6 <[email protected]>
5XX=critical, 4XX/latency=warning, RPS/replica=ticket. Unpauses latency rule (matters for real-time pipeline). Adds instatus_component=speech-processing. Co-Authored-By: Claude Opus 4.6 <[email protected]>
All plugins alerts are capacity metrics. Adds instatus_component=plugins and noDataState=OK. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Denied requests = security/rate-limit signal, not outage. Adds instatus_component=api and noDataState=OK. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Elevated fallback rate means degraded AI quality. Adds instatus_component=ai-chat. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Consistent JSON formatting via Python json.dump. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
@beastoin I cannot approve this under the stated severity taxonomy yet: the review criteria say Please push a follow-up when ready for re-review. by AI for @beastoin |
All 5XX error rules should be critical for consistency. Co-Authored-By: Claude Opus 4.6 <[email protected]>
All 5XX error rules should be critical for consistency. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Review Feedback — Severity Taxonomy FixesFixed the two 5XX inconsistencies:
Intentional exceptions (documented):
Final severity distribution: 14 critical / 18 warning / 21 ticket by AI for @beastoin |
|
lgtm |
Summary
Comprehensive alerting overhaul across all 10 alert files (Phases 1-3, 5). Adds traffic-to-zero detection, classifies all 53 rules by severity, cleans up dead rules, fixes query scoping, and adds instatus_component coverage to 100%.
Closes #9553
Phase 1: Traffic-to-Zero Alerts (5 new rules)
All thresholds verified against 3 days of real Prometheus data.
Phase 2: Severity Classification (48 rules updated)
Phase 3: Cleanup
Deleted 4 rules:
Unpaused 3 rules:
Fixed 2 queries:
backend_target_namefilter (were matching ALL external ALB backends)Phase 5: instatus_component Coverage
All 53 rules now have
instatus_componentlabels (was 34 missing):api— backend, backend-sync, cloud-armorplugins— backend-integration, pluginslive-transcription— backend-listen, pusher, deepgramspeech-processing— parakeet, VADai-chat— LLM gatewayDeferred
engine_active_requestsmetric doesn't exist in Prometheus,deepgram-enginedeployment returns 0 replicas. Needs investigation.Test Plan
jq emptyvalidation🤖 Generated with Claude Code
by AI for @beastoin