Muhammad Rafay
WorkBlogAboutContact

Work with me

DirectlyWhite-label for agencies

Solutions

All solutionsCloud infrastructureKubernetes & OpenShiftAI platform infrastructureEnterprise CMS hostingMigrations & go-liveDevOps, CI/CD & IaCSecurity & zero trustObservability & DRLoad testing

Markets

UAESaudi ArabiaQatar
  1. Home
  2. Work
  3. Observability and SRE

B2B software, Kubernetes

Observability and SLOs that cut mean detection time from 90 minutes to 5 and freed a fifth of engineering time.

A six-person team ran production with no visibility: incidents took hours to detect and 40% of engineering time went to firefighting. I built the observability stack, defined SLOs and burn-rate alerting, and wrote the runbooks. Mean detection time fell to 5 minutes and the team got 20% of its time back.

Client
B2B software company, six engineers
Delivered with
Cloudlit
My role
Cloud Solutions ArchitectCloud solutions, infrastructure, security and DevOps
Stack
Prometheus, Grafana, OpenTelemetry
Duration
6 weeks

The problem

Production nobody could see.

Incidents surfaced through customers and took two to three hours to diagnose. The few alerts that existed were too noisy to trust, no SLOs were defined, and 40% of a six-person team’s time went to firefighting.

What I did

  • SLOs first. SLIs tied to user experience, then SLOs the business could stand behind.
  • One stack. Metrics, logs and traces in one coherent stack instead of three disconnected tools.
  • Alerting. Pages on SLO burn rate, not every symptom, so they are rare and actionable.
  • Runbooks. A runbook written for every alert before it was turned on.
  • Shared view. Leadership and engineering read the same dashboards.

How delivery ran

Define healthy, then measure it.

  1. Agree the SLOs

    Week 1. Incident history reviewed, SLI candidates and SLO targets agreed with product and engineering.

  2. Instrument

    Weeks 2 to 3. Prometheus, Grafana and structured logging deployed as code, services instrumented.

  3. Alert and respond

    Weeks 4 to 5. Burn-rate alerts, runbooks and on-call, tuned against real traffic.

  4. Hand over

    Week 6. Dashboards for engineering and leadership, validation and hand-over, then 30 days of support.

Architecture

From the edge to the data.

The request path is in orange. Services emit OpenTelemetry traces and structured logs, Prometheus collects metrics sized to the SLO windows, and recording rules per SLI feed multi-window burn-rate alerts in Alertmanager. On-call is paged on SLO burn rate with a runbook for every alert, and engineering and leadership read the same dashboards.

Solution architecture: observability and SLOs on KubernetesProduction traffic reaches services running on Kubernetes that are instrumented with OpenTelemetry and write structured JSON logs with request correlation. Prometheus collects metrics with retention sized to the SLO windows, and a log pipeline collects logs into the same cluster. Recording rules define each service level indicator against its SLO, and multi-window burn-rate alerts are routed through Alertmanager to the on-call rotation, with a runbook for every alert. Grafana shows service health to engineering and SLO attainment to leadership.KUBERNETESPEOPLECustomersProduction trafficExperience measured as service level indicatorsInstrumentationOpenTelemetry in servicesStructured JSON logging with request correlationCollectionPrometheusMetrics from every serviceRetention sized to the SLO windowsCollectionLog pipelineLogs collected into the same clusterCorrelated by requestSLOsRecording rules per SLISLO targets agreed with productand engineeringAlertingAlertmanagerMulti-window burn-rate alertsA runbook written for every alertGrafanaDashboardsService health for engineeringSLO attainment for leadership, on the same numbersResponseOn-call rotationPaged on SLO burn rateRunbook for every alertPost-incident reviewBusinessLeadershipSLO attainment, on thesame numbers as engineersTraffic and alertsTelemetry and rulesReporting

Architecture decisions and their trade-offs

  1. SLOs agreed before any alert

    Why. SLIs tied to user experience and SLO targets agreed with product and engineering, so alerts measure what customers feel.

    Trade-off. The first week went on agreement rather than tooling, so instrumentation started in week 2.

  2. Page on burn rate, not on symptoms

    Why. Multi-window burn-rate alerts page only when the error budget is at risk, so pages are rare and each has a runbook.

    Trade-off. Some symptoms no longer page anyone. They show on the dashboards and in post-incident reviews instead.

  3. One stack inside the cluster

    Why. Metrics, logs and traces in one stack, correlated by request, instead of three disconnected tools.

    Trade-off. The team runs the stack itself, so retention is sized to the SLO windows rather than kept forever.

What was delivered

What the team now runs.

  • Observability stack as code with dashboards
  • SLO catalogue with recording and alert rules
  • Runbook per alert and an incident response procedure
  • Leadership reliability dashboard

Outcomes

What changed for the client.

AreaBeforeAfter
Mean time to detectAbout 90 minutes5 minutes
Mean time to resolveAbout 180 minutes25 minutes
AvailabilityUnmeasured99.8% SLO, met since go-live
Engineering time on incidentsAbout 40%About 20%, the rest redirected to features
Alert qualityNoisy, ignoredBurn-rate pages, each with a runbook

How these were measured: detection and resolution times are means across incidents, with the earlier figures taken from the incident history reviewed in week 1. Availability is measured against the 99.8% SLO from the day the SLOs went live.

Client-identifying information and sensitive implementation details have been omitted or generalised.

Have a cloud platform to build, modernise or improve?

Whether you are designing a new platform, modernising existing infrastructure or improving production operations, let’s discuss your requirements and delivery approach.