You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
server: production has no uptime checks or error alerts #693
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
A notification channel (Cloud Monitoring will not save an alert policy without one).
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.
Log-based alerts on server errors, ServerInitError, and renderToPNG: (preview-render failures).
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)
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.
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
Activity
bpowers commentedon Jul 11, 2026
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 namedseverity;levelremains a user payload field and stdout entries can retain DEFAULT severity. Therefore an alert filtered only onseverity>=ERRORmay miss Simlin application errors. Either emit/mapseverity(while retaininglevelif existing queries need it), or make the alert explicitly filterjsonPayload.level="error". This should be verified with one staged error before relying on the policy.server: move health route to /api/healthz (GFE reserves /healthz)
[-]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[/+]