Skip to content

monitoring: alert siblings for local delivery deaths and sync provider budget - #23271

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/stt-alert-siblings-1022
Oct 22, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/stt-alert-siblings-1022

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Why

What

Rule Severity / for Condition
omi-stt-local-delivery-exhausted (Live STT) warning / 30m omi_fallback_total{component="stt_live_session",reason=~"send_queue_full|replay_send_stalled|delivery_expired",outcome="exhausted"} / listen-accepted > 0.03, with >= 100 accepted per 15m
omi-sync-provider-budget-exhausted (Backend-sync, gmp-cloud-run) critical / 5m sum by (namespace) increase(omi_sync_transcription_job_total{outcome="provider_budget_exhausted"}[15m]) >= 3 on backend-sync and backfill
  • Where the rules live: in alert-rules.json and the split exports (alerts/live-stt.json, alerts/backend-sync.json).
  • Supporting changes:
    • the live-STT rule is added to the pusher live-alert import allowlist (live-alert-gate.json, verify_pusher_live_alert_route.py);
    • the GMP inventory is regenerated;
    • a contract test is added.

Verification

Review: infra rollout lead before merge.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

…r budget

P34 (#23074) moved Soniox/Modulate local delivery deaths off capacity_full, so
omi-stt-capacity-full-exhausted no longer sees them. Add
omi-stt-local-delivery-exhausted (warning, >3% of accepted sessions exhausted
on send_queue_full|replay_send_stalled|delivery_expired, >=100 accepted/15m,
for 30m). Backtest: fires through the pre-#23147 pacing bug (p50 0.039, max
0.060), silent after #23147 (max 0.012).

Modulate's 429 "Insufficient credits" (10-22 from ~02:00Z) paged nothing
purpose-built. #23234 types it provider_budget_exhausted on sync jobs; add
omi-sync-provider-budget-exhausted (critical, >=3 jobs/15m on backend-sync or
backfill via gmp-cloud-run, for 5m).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T08:53:55.909417Z e01cc30 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e01cc30341

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"type": "prometheus",
"uid": "gmp-cloud-run"
},
"expr": "sum by (namespace) (increase(omi_sync_transcription_job_total{project_id=\"based-hardware\",cluster=\"__run__\",job=\"omi-cloud-run-application-metrics\",namespace=~\"backend-sync|backend-sync-backfill\",outcome=\"provider_budget_exhausted\"}[15m]))",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Initialize the budget counter before querying increase

When an instance has not previously emitted this outcome—which is true for a newly deployed revision and for the first budget failure—the labeled counter series is created with the failures already included in its first sample, so PromQL increase() cannot observe them without an earlier zero sample. The repository explicitly classifies omi_sync_transcription_job_total as sparse (test_monitoring_stt_metric_zero_init.py:28-30), while this new alert only requires three events; a short burst of three or more failures before the first scrape can therefore leave $A empty/zero and never page. Initialize the relevant bounded provider_budget_exhausted children at startup, as the live fallback counters do, or use a signal with a guaranteed baseline.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 7748f8c into main Oct 22, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/stt-alert-siblings-1022 branch October 22, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant