Skip to content

server: production has no uptime checks or error alerts #693

Open

Description

@bpowers

Production (the App Engine default service) has no alerting: nothing notifies anyone when the server is down, crash-looping, or erroring, so a bad deploy stays live until someone notices.
The rollback in docs/dev/deploy.md is a manual traffic split with nothing to trigger it.

The in-repo part is done: GET /api/healthz exists and is unauthenticated.
What remains is Cloud Monitoring setup.

What to set up

  1. A notification channel (Cloud Monitoring will not save an alert policy without one).
  2. An uptime check on /api/healthz.
    A check on / alone is not enough: app.yaml serves / as a static file, so it returns 200 while every Express instance is crash-looping.
  3. Log-based alerts on server errors, ServerInitError, and renderToPNG: (preview-render failures).
  4. Alerts on 5xx ratio and p95 latency.

The server logger writes {"level":"error", ...} JSON lines and no severity field, so Cloud Logging likely records them at DEFAULT severity and a severity>=ERROR filter would miss them.
Either add severity to the logger output or filter on jsonPayload.level="error"; confirm with one deliberate error before relying on it.

Client-side login failures produce no server log and stay out of scope.

Open question

Whether this config lives in the repo (a gcloud script or Terraform) or as runbook steps in docs/dev/deploy.md.

Pointers

  • docs/dev/deploy.md (rollback and the "no error reporting or alerting" note)
  • src/server/healthz.ts, src/server/logger.ts, app.yaml

Activity

  1. added
    backend
    on Jun 8, 2026
  2. bpowers commented on Jul 11, 2026

    @bpowers
    OwnerAuthor

    Deployment-audit clarification for the proposed log alert: the current custom logger emits JSON as {"level":"error","message":...} (src/server/logger.ts). Cloud Logging's structured severity field is named severity; level remains a user payload field and stdout entries can retain DEFAULT severity. Therefore an alert filtered only on severity>=ERROR may miss Simlin application errors. Either emit/map severity (while retaining level if existing queries need it), or make the alert explicitly filter jsonPayload.level="error". This should be verified with one staged error before relying on the policy.

  3. changed the title [-]ops: add minimum production monitoring (notification channel, healthz route + uptime checks, log-based ERROR alerts, 5xx/latency alerts)[/-] [+]server: production has no uptime checks or error alerts[/+] on Oct 12, 2026
  4. added
    enhancement
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions