Skip to content

Add low-cost backend alerting#41

Merged
KostasCherv merged 2 commits into
mainfrom
codex/backend-alerting
Jul 17, 2026
Merged

Add low-cost backend alerting#41
KostasCherv merged 2 commits into
mainfrom
codex/backend-alerting

Conversation

@KostasCherv

Copy link
Copy Markdown
Owner

Summary

  • provision an idempotent Cloud Monitoring baseline for backend uptime, 5xx bursts, and Cloud Run runtime/probe failures
  • enable privacy-safe Sentry error capture for handled domain errors, SSE failures, and terminal outbox delivery failures
  • wire Sentry production configuration through Secret Manager and Cloud Run
  • document GCP, Sentry, and Inngest activation and cost guardrails

Why

The backend already exposed health/readiness signals and produced useful logs, but the production GCP project had no alert policies or uptime checks. Several SSE and outbox failures could also return HTTP 200 or be swallowed, making request-level 5xx monitoring insufficient.

Operational impact

The GCP alerting baseline has been applied successfully to cortex-502007 and the setup script was rerun to verify idempotency. Sentry remains inactive until a real sentry-dsn secret is populated and the updated backend is deployed. Inngest email rules still require dashboard activation.

Validation

  • full test suite: 585 passed
  • focused alerting/API suite: 124 passed
  • Ruff checks passed
  • mypy passed
  • Bandit passed
  • shell syntax and dry-run checks passed
  • GCP setup rerun successfully with exactly one uptime check and three enabled policies
  • production /health returned {"status":"ok","version":"0.1.0"}

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cortex Ready Ready Preview, Comment Jul 17, 2026 9:48am

@KostasCherv
KostasCherv marked this pull request as ready for review July 17, 2026 10:00
@KostasCherv
KostasCherv merged commit ed8414d into main Jul 17, 2026
5 checks passed
@KostasCherv
KostasCherv deleted the codex/backend-alerting branch July 17, 2026 10:03
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