A UK healthcare SaaS company

Pages that mean something

Pages now fire only on sustained, ratio-based conditions, from SLOs and burn-rate alerts defined in Terraform for every production project.

14.4×Fast-burn threshold: 1h and 5m windows must both burn

Outcomes

  • Pages fire only on sustained, ratio-based conditions.
  • Dashboards, alerts and SLOs are Terraform for every production project in 4 regions.
  • Each service has a 2xx latency SLO sized from its own healthy baseline.

The problem

The P0 and P1 alert channels held about 99 messages each, with near-zero signal.

Short spikes set off noisy pages.

What I built

  • Terraform modules for dashboards, alerts and SLOs, wired per production project across 4 regions. They cover Cloud Run, global load balancers, Cloud SQL, Redis, Pub/Sub, Datastream, Firestore and BigQuery.
  • Ratio-based P0 pages for 5xx errors: over 50% of requests failing and above an absolute rate floor, sustained for 5 minutes.
  • Multi-window burn-rate alerts: 1h and 5m both over 14.4×, and 6h and 30m both over 6×.
  • Per-service 2xx latency SLOs, sized from measured healthy baselines.
  • Traffic floors, per-resource condition pairing and auto-close on alert policies.
  • Uptime checks, failed-build alerts and BigQuery slot-capacity tiers (P1 at 70%, P2 at 50%).
  • App instrumentation: structured JSON logs with trace IDs, OpenTelemetry traces to Cloud Trace through collector sidecars with sampling, and error reporting at parity with the previous tool.
  • Every alert policy routes to Slack as a readable card.

Architecture and stack

  • GCP: Cloud Monitoring (SLOs, alert policies, dashboards, uptime checks), Cloud Logging, Cloud Trace, Error Reporting
  • Terraform
  • OpenTelemetry collector sidecars
  • Slack