← Blog

Observability · SRE · Distributed Systems

Why Can a Healthy Dashboard Hide a Failing Distributed System?

Every component can report healthy while the thing users actually care about is failing. This article covers why that happens (averages, aggregates, retries, queues, HTTP 200s with wrong data) and how to build monitoring around whether the work actually got done.

Aashaya Aryal

August 17, 2025 · 14 min read

Updated November 17, 2026

Operator seated in an industrial control room surrounded by monitoring screens and control panels.

Imagine opening the production dashboard during an incident. CPU is at 42%, memory at 61%, database connections at 55%, the HTTP success rate is 99.7%, average latency is 118 ms, and the Kafka brokers are healthy. Every graph is green. Meanwhile, customers are reporting that orders are disappearing.

That only sounds contradictory if healthy components imply a healthy system, and they don't. A server can be healthy while returning the wrong result. A Kafka cluster can be healthy while an event goes missing further downstream. A queue can be working correctly while work piles up faster than consumers can drain it. A database can have plenty of capacity overall while one tenant's queries time out. An average latency chart can look great while a small group of users waits several seconds.

The Google SRE book's chapter on monitoring distributed systems puts it as two separate questions: what is broken, and why. User-visible latency, errors and correctness tell you what. CPU, heap, connection counts and queue depth usually help explain why. The question I find most useful when designing monitoring is: what signal would prove that the user's operation actually succeeded?

Healthy components, broken workflow

Here's an order pipeline:

Diagram

API

Database

Kafka

Order Processor

Payment Service

Notification Service

Suppose the API returns 200, the database write succeeds, Kafka accepts the event, the consumer process is running and the payment API is up. Every component can honestly report healthy while the order event never reaches the consumer because of a bug somewhere in between. The infrastructure is alive; the business operation is incomplete.

Many dashboards are dominated by CPU, memory, disk, process up/down and connection counts. Those are valuable: they tell you whether infrastructure is saturated, leaking or unreachable. They don't tell you whether the system is doing the right thing. In a distributed workflow, the most important failure often sits between healthy components, which is exactly where component-level monitoring stops.

Start with what users experience

The SRE book's four golden signals are latency, traffic, errors and saturation. What's useful about them isn't the list itself; it's that they describe how the service behaves rather than how the machines behave. For an API I'd start with:

  • How many requests are arriving?
  • How long do successful requests take? How long do failed ones take?
  • How many logical operations are failing?
  • How close is the system to whatever resource limits it?

Then I'd use CPU, memory, threads, connection pools, queues, database latency and cache behaviour to explain what I see. The order matters. CPU at 90% may be fine if latency and errors are healthy. CPU at 40% tells me nothing if checkout success has dropped to 70%.

Even these signals can be measured at the wrong level. An overall error rate of 0.3% sounds fine, but if almost all of those errors are on POST /checkout while high-volume health checks and reads succeed, the aggregate is hiding the most important operation. Saturation is similar: a machine can have spare CPU while its database connection pool is exhausted, and Kafka brokers can have plenty of headroom while one partition is hours behind. The right saturation metric is whichever resource actually limits the user's operation.

Averages hide the slow requests

Suppose 990 out of 1,000 requests take 80 ms and 10 take 5 seconds. The average is about 129 ms, which looks healthy. But 1% of users waited 5 seconds, and that 1% matters more when one user request fans out to several services, because each extra dependency is another chance to land in someone's slow tail.

MetricLatency
Average129 ms
p5080 ms
p9592 ms
p994.8 s

(A percentile like p99 is the latency that 99% of requests come in under.) The average and the p99 are both accurate descriptions of the same system. Only the p99 tells you why customers might be complaining.

There's a more misleading version. Say successful requests take 300 ms because they hit the database. The database becomes unreachable, and requests start failing with 500 in 5 ms. If successes and failures share one latency metric, the average improves during the outage. The service got less reliable and the dashboard got faster. That's why it's worth recording latency separately by outcome, for example request_latency{outcome="success"} and request_latency{outcome="failure"}. Averages aren't wrong; they just answer a narrower question than people often assume.

A 200 response isn't always success

It's tempting to treat 200 as success and 500 as failure. But an API can return 200 with {"status": "complete", "items": []} when the correct response had 25 items. HTTP says success; the customer sees missing data. The SRE book calls these implicit failures: a 200 response with the wrong content.

So application telemetry needs signals for domain outcomes, not just protocol outcomes. For an order system that might be orders created, paid, fulfilled and cancelled. For a data pipeline, events produced, received, processed and stored. For authentication, logins attempted, logins completed and tokens issued. With those counters you can check whether steps that should line up actually do. An HTTP request can succeed while the asynchronous work it triggered never finishes, and if the operation spans several systems, success at the first boundary is only the start of the story.

Counting work end to end

Uber built a tool called Chaperone for exactly this problem in its Kafka infrastructure. Messages passed through several stages: the application, a proxy client, a proxy server, regional Kafka, replication, and an aggregate Kafka cluster. Monitoring each broker and replicator couldn't answer the question that mattered: did every message make it through?

Chaperone counted messages at each stage over time windows, so it could detect loss, lag and duplication end to end. Uber describes a case where their replicator got stuck in a loop after brokers returned unexpected errors. Neither the replicator nor the brokers triggered alerts, but the count mismatch exposed the bug quickly. The components were observable; the path through them wasn't, until something counted along it.

Many workflows have rough "conservation" rules you can monitor the same way:

  • events in ≈ events out
  • orders created ≈ orders processed + pending + failed
  • money authorised ≈ money captured + released + pending

These won't match at every instant, because asynchronous processing, retries and queues add delay. But a gap that keeps growing means something. If 10,000,000 events were produced and 9,997,400 consumed, the broker CPU graph won't care. The business probably should. This kind of monitoring asks whether work is conserved across the workflow, not just whether each process is alive.

Slicing where failures hide

Aggregation is necessary, or dashboards become unreadable, but every aggregate throws information away. If a Kafka topic has 100 partitions, 99 with zero lag and one with 100,000, the average is 1,000. With an alert threshold of 10,000, nothing fires, while every event on that partition is badly delayed.

The same thing happens across regions, availability zones, tenants, shards, replicas, API routes and application versions. Whenever I see an aggregate, I want to ask "across what?" A p99 of 300 ms: for which endpoint, tenant, region, status class, dependency or deployment version? A global number is good for catching broad incidents and can be useless for catching narrow ones.

Stripe has written about monitoring narrow slices of payment traffic for this reason. Their example is a UK card issuer that starts declining recurring payments on prepaid cards. At Stripe's scale, that spike barely moves global metrics, but it's serious for the UK businesses that rely on prepaid cards. Multi-tenant software has the same shape: tenants A and B at 99.99% and tenant C at 71.2% can still average out to an excellent platform-wide number while tenant C is having an outage.

That doesn't mean attaching every identifier to every metric. Prometheus-style metrics work well for labels with a bounded set of values, such as region, status code, route, service and deployment version. They're a poor fit for effectively unlimited values like user IDs, request IDs, order IDs or emails, because each new combination creates another time series, and storage and query costs grow with them. That kind of high-cardinality investigation is better done with structured logs and traces. The design question is which questions need to be cheap enough to answer all the time, and which can be investigated on demand.

Metrics, logs and traces together

Each kind of telemetry answers a different part of an incident.

Metrics tell you something changed. Did p99 latency rise? Is the error rate climbing? Is queue depth growing? Which region is affected? A counter like http_requests_total{service="checkout", route="/checkout", status="500", region="us-east-1"} and a latency histogram are compact, easy to aggregate and good for alerting. They usually can't tell you what happened to one specific request.

Structured logs tell you what happened. "Checkout failed" on its own is weak. A structured record carries context you can query:

JSON
{
  "timestamp": "2026-10-01T05:21:13Z",
  "level": "error",
  "service": "checkout-api",
  "requestId": "req_a719",
  "tenantId": "tenant_42",
  "orderId": "ord_9832",
  "dependency": "payments",
  "operation": "authorize",
  "attempt": 2,
  "durationMs": 812,
  "errorCode": "UPSTREAM_TIMEOUT"
}

Now you can ask for every failure for req_a719, every payment failure for tenant_42, every timeout since deployment v91, or every operation that needed more than two attempts.

Traces tell you where the time went. If POST /checkout takes 2.4 seconds, a trace can break that down: API gateway 10 ms, checkout service 80 ms, inventory 40 ms, payments 2,180 ms, database 60 ms. The question changes from "why is checkout slow?" to "why did payments take 2.18 seconds?", which is a much smaller search.

They're most useful when they connect. A good incident flow reads like one story: the checkout p99 metric went up; slicing shows only us-east-1 is affected; a trace shows payments dominating the latency; its request ID leads to logs showing the first payment call timed out and the retry succeeded. The weak version is when every tool uses its own identifier (one hostname in CloudWatch, a different ID in Sentry, unrelated UUIDs in logs, event IDs in Kafka) and nothing connects them. You can have huge amounts of telemetry and still struggle to follow one operation.

Retries and queues hide degradation

Resilience mechanisms are valuable because they hide temporary failures from users. That also means they can hide a worsening system from operators.

Suppose a dependency normally succeeds 99.9% of the time and degrades to 90%. The application retries once, most second attempts succeed, and user-visible availability stays around 99%. That looks fine, but underneath, dependency errors, attempt counts, latency and retry amplification have all gone up. The system is much closer to the edge while the top-level success graph stays green. So I want separate counters for logical requests, attempts, retries, dependency errors and user-visible failures. Otherwise a recovery mechanism can hide degradation until it runs out of capacity itself.

Queues hide imbalance by design. If producers emit 1,000 events per second and consumers drop from 1,000 to 900, nothing fails. The producer, Kafka and the consumer are all healthy, yet the backlog grows by 100 events a second, or 360,000 after an hour. The useful signals are arrival rate, processing rate, lag, age of the oldest event and estimated drain time, not "consumer process is up".

Age often says more than depth. Two queues can each hold 100,000 messages. One receives 100,000 a second and drains 110,000: it's recovering. The other receives 1,000 and drains 900: it's getting worse. The rate of change of lag and the age of the oldest pending work describe their health far better than the depth does. (I wrote more about this in What does rising Kafka consumer lag actually mean?)

Testing the path from outside

White-box monitoring asks what the application reports about itself. Black-box monitoring asks whether an outside user can actually complete the operation. The SRE book recommends both, with black-box checks for critical user-facing behaviour.

A synthetic checkout might create a test user, add a product, check out, then verify the order exists and the payment is in the right state. If CPU, Redis, the database and the /health endpoint all look fine while that synthetic transaction keeps failing, production isn't healthy. The check tests the promise made to users, not just whether the components are running.

A GET /health returning 200 usually proves the process started and the HTTP listener works. It doesn't prove database writes, Kafka publishes, payments, cache invalidation or webhook processing work. Health endpoints are useful; the mistake is reading "container alive" as "business healthy".

Page on symptoms, investigate causes

The SRE book distinguishes symptoms from causes. "Database CPU above 90%" is a possible cause, and may be completely normal during a batch job. "Checkout failure rate above 5%" is a symptom: someone is actually affected. A sensible split looks like this:

Page someoneUse for investigation
SLO burn rate too highDatabase CPU high
Checkout failure rate above objectiveConnection pool saturated
p99 of successful requests above objectiveCache hit rate falling
Synthetic transaction failing repeatedlyConsumer lag or retry rate rising

Cause metrics are essential for fixing the incident. Paging mainly on symptoms keeps alerts tied to a real promise to customers rather than every unusual resource wobble.

Even symptoms can be too aggregated. On a platform with 1,000 tenants, one enterprise tenant might be 0.3% of traffic. That tenant can be at 100% failure while platform-wide availability sits around 99.7%. A global SLO still needs slices wherever important customers or workflows can fail independently.

Observability has a cost

Once you find these blind spots, it's tempting to measure everything, alert on everything and keep everything. That creates its own problems.

More alerts can mean less awareness. Monitoring thousands of dimensions produces random deviations just because so many things are being evaluated. Stripe's slice monitoring deals with this by modelling the expected success rate for each slice, so normal shifts in traffic mix don't trigger false positives. The SRE book makes the human side of the point: when pages come too often, people start skimming or ignoring them, and real pages get lost in the noise. An alert that fires every day and gets ignored isn't really an alert.

Sampling can hide rare failures. At 100,000 requests a second, keeping every trace may be unnecessary, so you sample 1%. But a failure affecting 0.01% of traffic is now barely represented, and random sampling can discard exactly the trace you needed. A better policy might keep all errors, all very slow requests and more of the unusual tenants or routes, plus a small sample of healthy traffic. Approaches that decide after a trace finishes (often called tail-based sampling) cost more to build but keep the interesting failures.

Instrumentation is production work. Every log line, metric, span and stack trace costs CPU, memory, network, storage and money. The goal is enough telemetry to answer important questions without observability becoming a significant cost or source of failure itself.

Following one operation across services

Observability design often starts with tools: Prometheus, Grafana, Sentry, CloudWatch, OpenTelemetry. That tells me little about which failures the system can detect. I'd rather start with questions and pick telemetry that answers them:

  • Can users complete checkout?
  • Are events being lost between Kafka stages?
  • Which tenants have elevated failure rates?
  • Which dependency dominates p99 latency?
  • Are retries increasing, and can consumers drain the current backlog?
  • Which deployment introduced the problem?

Answering most of those means following one operation across services, so its context has to travel with it. If checkout begins with requestId = req_92f1, that ID should appear at every hop:

Diagram

API
req_92f1

Order Service
req_92f1

Kafka Event
trace context

Payment Worker
req_92f1

Payment API

Database

An order.created log from the order API and a payment.retry log from the payment worker that share req_92f1 let an operator reconstruct the journey. AWS's Well-Architected guidance on end-to-end tracing recommends the same thing: trace requests across service boundaries rather than investigating one component at a time.

Asynchronous systems often need more than one ID, because the HTTP request may finish long before the work it started:

JSON
{
  "traceId": "tr_7cd",
  "eventId": "evt_871",
  "orderId": "ord_991",
  "causationId": "evt_721",
  "correlationId": "checkout_442"
}

Each answers a different question. eventId says which exact message this is. correlationId says which business workflow it belongs to. causationId says which event caused this one. traceId says which distributed execution you're looking at. The distinction pays off once retries, fan-out and replays are involved.

The same idea extends to business transitions. Infrastructure says Kafka, the database and the workers are up. Business telemetry says how many orders made it through each step:

Diagram

Orders Created
10,000

Payment Attempted
9,999

Payment Completed
9,998

Fulfillment Requested
9,997

If one step starts diverging from the one before it, that's a much better place to start investigating than "all containers are running". It also separates normal delay from lost work. If the gap between orders created and orders paid usually sits around 50 because payment takes a few seconds, that's expected. If it grows to 10,000 and keeps climbing, something has changed, even if every component still passes its health check.

Dashboards that start from user impact

I like dashboards arranged in layers that move from user impact toward technical explanation:

  1. User symptoms: availability, business success rate, p95 and p99 latency, SLO burn, synthetic transaction success.
  2. Workload behaviour: traffic, retry rate, queue lag, oldest work age, cache hit rate, event throughput.
  3. Dependencies: database latency, external API latency and errors, Redis latency, Kafka delivery and consumer health.
  4. Resources: CPU, memory, threads, connections, disk, network.

That moves an investigation from "what's broken?" to "why?", instead of starting with 40 CPU graphs and asking the on-call engineer to work out whether customers are affected.

It also helps to build views around likely incidents rather than around which team owns which component. For "checkout latency went up": checkout p99, payment p99, database p99, cache hit rate, retry rate, connection pool wait time and deployment version. For "Kafka processing is delayed": arrival and processing rates, per-partition lag, oldest event age, rebalances, database latency and consumer errors. For "one tenant reports failures": that tenant's volume, errors and latency, authorisation failures, query latency, region and version. Those are diagnostic tools. A dashboard grouped only by component tends to become a gallery of metrics.

Testing your monitoring

How do you know your monitoring catches the failures you care about? Break things on purpose, ideally in a staging environment or with careful controls:

  • make one dependency return 500
  • slow down one database query
  • pause one Kafka consumer, or drop one class of events
  • return 200 with incomplete data
  • turn off Redis, or make one tenant fail authorisation
  • add 3 seconds of latency in one region

Then check: did an alert fire? Which dashboard changed? Could you identify the affected users and the boundary that failed? Did shared IDs connect the evidence? Would an on-call engineer understand what happened?

This is a good way to find blind spots. The dependency failure might show up clearly as an error spike. The dropped events might not change any infrastructure metric at all. The one-tenant failure might vanish into the global average. The experiment tells you whether your telemetry matches how the system actually fails.

A dashboard doesn't show your system. It shows the measurements you chose to collect, keep, aggregate and display. If you only measure average CPU, average latency and global error rate, the dashboard describes a world where slow tails, individual tenants, partitions, rare failures, wrong-but-200 responses and unfinished async work barely exist. The system didn't get simpler; only the picture did. The most useful question when reviewing a dashboard is: which important failure could happen without noticeably changing anything on this page? Each answer is a gap worth closing.

Key takeaways

  • Start monitoring from what users experience (latency, errors, traffic, saturation, and whether the operation actually completed), then use resource metrics to explain it.
  • Look at percentiles, and record success and failure latency separately so fast failures don't make an outage look faster.
  • Track business outcomes and count work at each stage. A 200 with the wrong content is still a failure.
  • Slice by tenant, partition, region and route where failures can hide, and keep unbounded identifiers in logs and traces rather than metric labels.
  • Count retries separately from logical requests, and monitor queue age and growth, not just depth.
  • Pass shared IDs through every hop, page on symptoms, and test your monitoring by injecting failures you expect it to catch.

References