Skip to content

Observability alerts

APCO Cloud can email (and optionally webhook) the project owner when operational incidents occur. Alerts are disabled by default — enable them per project under Settings → Observability alerts.

Channels

  • Email — sent only to the project owner's verified account email.
  • Webhook — optional HTTPS endpoint with HMAC-signed JSON payloads (apco.alert.v1).

Fixed thresholds (v0)

AlertOpens whenRecovers when
Deployment failureAny failed deploy, rollback, promote, or startN/A (one-shot)
Backup failureManual backup fails or housekeeping marks a stuck backup failedN/A
Scheduled job failureA logical run exhausts retries as failed or timed outA later run of the same definition succeeds
5xx spikeProduction traffic: 5 min window, ≥25 requests, ≥10 5xx, ≥20% rateCondition clears
Health check3 consecutive probe failures (every 2 min)2 consecutive successes
CPU / memory2×5 min ≥90% of plan limit2×5 min below 75%
Quota warningMonthly requests or bandwidth ≥80%Below 80%
Storage / database≥80% of plan limit on fresh sampleBelow 80%

Health monitor limitations

  • Probes the canonical production URL (https://<slug>.apco.space + manifest health path).
  • Password-protected projects are skipped in v0.
  • Stopped and suspended projects are skipped.
  • Probe traffic uses APCO-HealthMonitor/1.0 and is excluded from analytics and quotas.

Webhook verification

Headers:

  • X-APCO-Event-Id — stable across retries
  • X-APCO-Timestamp — ISO-8601 UTC
  • X-APCO-SignatureHMAC-SHA256(secret, "<eventId>.<timestamp>.<rawBody>") hex

Verify the signature over the exact raw JSON body. Payloads never include secrets, env vars, or logs.

API scopes

  • alerts:readGET /api/v1/projects/:id/alerts
  • alerts:writePATCH settings, webhook configure/rotate/remove
  • GET /api/v1/deployments/:id/timelinelogs:read

Self-hosting email

Alert email uses RESEND_API_KEY and EMAIL_FROM (same as auth mail). If RESEND_API_KEY is unset, delivery retries then marks the attempt failed — configure Resend for reliable alerts.

APCO Cloud — ship apps with one command.