Repository navigation
feat(monitoring): page on capture/chat/pusher journey SLI outcomes - #12446
Merged
Merged
Conversation
The 2026-08-30 capture-finalization outage sat at 0% success for hours (failure ~360/h, stale ~290/h, accepted ~750/h, oldest job ~5.9d, dead letters ~2.5k/day) while every listen/pusher critical stayed Normal: they only watch LB traffic, ready pods, WS counts, and 5xx rates. The journey rules that did read user outcomes were warning-class (#11991), and the Core Features dashboard tiles were visualization-only. Add six severity:critical rules plus liveness coverage for chat: - omi-journey-capture-success-critical / -pusher- / -chat-: success share < 0.90 for 10m at >= 20 accepted/30m (numerator and denominator from the same omi_journey_terminal_total emitter) - omi-journey-capture-settle-gap: accepted - settled > 50/h at >= 100 accepted/h for 15m - omi-capture-oldest-nonterminal: max age > 3600s for 15m - omi-capture-dead-letter-surge: > 50 dead letters/h for 15m - omi-journey-signal-dead now covers chat_response behind a chat-agent lane gate (> 20/h, above the lane's measured p05); the LIVENESS_EXEMPT_JOURNEYS entry is deleted per its own instruction now that the Cloud Run metrics bridge is verified live (#11998, #12146) Contract tests pin severity, components, gates, noData semantics, and single-emitter pairing; expected-targets documents the new finalization_queue_health: Alerting no-data class; runbooks updated. Verification: pytest tests/unit/test_journey_observability.py tests/unit/test_monitoring_alert_rule_contract.py tests/unit/test_monitoring_dashboard_absence_contract.py tests/unit/test_monitoring_telemetry_contract.py -> 63 passed; make preflight -> 11 checks passed. Co-authored-by: multica-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this change
On 2026-08-30 a voice-capture outage left
capture_finalizationsuccess at 0% for hours while every existing critical stayed Normal: listen ready=5, listen WS≈325, pusher WS≈326, LB traffic flowing, 5xx rps=0. The existing criticals only watch zero LB traffic, zero ready pods, WS < 10, and 5xx rates. The rules that did read user outcomes (omi-journey-*-fail, #11991) are warning-class, and the Omi Core Features dashboard that plots these SLIs is visualization-only — panel thresholds, zero alert rules. Dashboard ≠ alert: the signal existed, nothing paged on it.Incident fingerprint (last 1h at peak):
omi_journey_terminal_total{journey="capture_finalization"}success=0, failure≈360, stale≈290; accepted≈750; oldest unfinished finalization job ≈ 5.9 days; dead letters ≈ 2.5k/24h.What was added
Six
severity: criticalrules in theResiliencegroup (split sourcebackend/charts/monitoring/alerts/resilience.json, mirrored into the combinedbackend/charts/monitoring/alert-rules.json), plus one rule change. Every rule links the Core Features panel that plots its own signal.capture_finalizationsuccess shareomi-journey-capture-fail(warning, #11991; readslisten_finalization_durable_jobsdeltas)omi-journey-capture-success-criticalNoDataomi-capture-finalization-dead-emission(warning; fires only on zero terminal movement)omi-journey-capture-settle-gapNoDatalisten_finalization_dead_letter_totalomi-capture-dead-letter-surgeAlertinglisten_finalization_oldest_nonterminal_age_secondsomi-capture-oldest-nonterminalAlertingpusher_sessionsuccess shareomi-journey-pusher-fail(warning)omi-journey-pusher-success-criticalNoDatachat_responsesuccess shareomi-journey-chat-fail(warning; unfirable for its whole life before the Cloud Run bridge)omi-journey-chat-success-criticalNoDataomi-journey-signal-deadcovered onlypusher_session|capture_finalization;chat_responseexemptomi-journey-signal-deadchanged — adds achat_responsearmAlertingllm_gateway_requests_total{lane_id="omi:auto:chat-agent"} > 20/1hPromQL
Success-rate rules pair numerator and denominator from the same emitter (
omi_journey_terminal_totalfor onejourney), gated on that journey's accepted counter (example: capture):Settle gap (accepted minus all terminal outcomes, 1h):
$A >= 100 && $B > 50, for 15m.Oldest job:
max(listen_finalization_oldest_nonterminal_age_seconds) > 3600, for 15m.Dead letters:
sum(increase(listen_finalization_dead_letter_total[1h])) > 50, for 15m.Liveness chat arm (added to
omi-journey-signal-dead):noData semantics
NoData(the documentedtraffic_gated_journeyclass) — missing series are visible as NoData, never healthy; counter death pages viaomi-journey-signal-deadandomi-journey-scrape-missing.oldest-nonterminal,dead-letter):Alerting— both series are unlabeled and zero-initialized on every backend-listen replica, so absence during real traffic means the emitter or its scrape is gone. Documented asfinalization_queue_healthinexpected-targets.prod.yaml.Threshold calibration (documented in
backend/docs/runbooks/real-traffic-journeys.md)These are incident-calibrated initial values; replay them against production history when importing (the repo has no live Prometheus access from a PR-checkout environment).
Live vs git reconciliation
alert-rules.json; no CI writes Grafana, and this PR follows that path (no API writes).utils/metrics.py,utils/observability/journeys.py(journey∈ {chat_response,pusher_session,capture_finalization};outcome∈ {success,failure,cancelled,stale}),services/conversation_finalization.py(unlabeled dead-letter counter, unlabeled oldest-age gauge,state-labeled durable gauge), and the closed vocabulary inbackend/docs/runbooks/real-traffic-journeys.md. Direct live Prometheus/Grafana queries were not available from this environment (auth required); thechat_responseingestion path is evidenced by fix(monitoring): size the Cloud Run metrics exporter for a real collection #12146's measured live prod scrape (~28MB, 52,662omi_*series).Tests
Extended
test_monitoring_alert_rule_contract.py:LIVENESS_EXEMPT_JOURNEYSis now empty — thechat_responseexemption's own deletion clause fired once the Cloud Run bridge was verified live;test_every_alerted_journey_is_covered_by_the_liveness_rulenow enforces chat coverage instead.test_page_class_journey_rules_cover_the_capture_outage_fingerprint(severity, component, noData,forwindow, receiver, exact math gates),test_page_class_success_rules_pair_numerator_and_denominator_from_one_emitter,test_finalization_queue_rules_read_the_replicated_series_correctly(max-aggregation for the replicated gauge).Verification
Closes SCA-379