SDSystem DesignConcepts to case studies
System DesignDSA
x
0/311
Part 1: Foundations
Part 2: APIs and Communication
Part 3: Caching
Part 4: Data and Storage
Part 5: Architecture
Part 6: Distributed Systems
Part 7: Advanced Data Topics
Part 8: Operations and Security
  • Three Pillars of Observability
  • Logging Best Practices
  • Log Aggregation
  • Metrics and Instrumentation
  • Distributed Tracing
  • Alerts and Monitoring
  • Dashboards and Runbooks
  • SLOs and Error Budgets
  • Incident Management and Postmortems
  • Profiling
  • Audit Logs
Part 9: Estimation and Interview Method
Part 10: Case Studies
System Design/Operations and Security/Observability

Dashboards and Runbooks

One screen to see health at a glance, and a step-by-step guide for when it goes wrong.

⏱ 11 min readBeginnerHas visualizer
SummaryConceptReal-Life ExampleWhy?Where?How It WorksStepsKey TermsPros & ConsMistakesReal WorldRead NextInterview Q&ACheat-Sheet

01Quick Summary

A dashboard is one screen that shows the health of a system at a glance. A runbook is a short, step-by-step guide that says what to do when a particular thing goes wrong.

  • The dashboard answers "Is something wrong, and where?"
  • The runbook answers "What do I do about it?"
  • Together they turn a scary 3 a.m. alert into a calm checklist that anyone on call can follow.

02Concept: What is it?

Once you collect metrics, logs and traces, you still need a way for a human to use them. Raw data does not help at 3 a.m. A dashboard turns the most important numbers into charts, and a runbook turns the team's hard-won knowledge into steps.

A good dashboard starts with the four golden signals (from Google's SRE book): latency (how long requests take), traffic (how many requests), errors (how many fail) and saturation (how full the system is). These four tell you if users are happy, for almost any service.

A good runbook is attached to an alert. When the alert fires, it links straight to the runbook. The runbook says what the alert means, how bad it is, what to check first, how to fix or reduce the harm, and who to call if it does not work.

From alert to fix
πŸ””Alert fireslinks to both
→↓look
πŸ“ŠDashboardwhat and where
→↓decide
πŸ“–Runbookwhat to do
→↓act
βœ…Fixedthen learn
The alert points to the dashboard to see the problem, and to the runbook to fix it.
🧠Dashboards show symptoms first
Start with what users feel (latency, errors), then let the engineer drill down to causes (a database, one server, one dependency). A dashboard of 60 random charts is worse than one with 6 that matter.

03Real-Life Example

🍡The Car Dashboard and the Owner's Manual
Your car has a small dashboard: speed, fuel, engine temperature and a few warning lights. It does not show every sensor in the engine, only what you need to drive safely. When the red oil light comes on, you do not guess. You open the owner's manual, find "oil warning light", and it says: stop the car, check the oil level, add oil if low, and call a mechanic if the light stays on. A new driver and an expert follow the same page.
Car
Software system
Speed, fuel, temperature
The golden signals: latency, traffic, errors, saturation
A warning light
An alert
Choosing only the important gauges
A focused dashboard, not 60 charts
The owner's manual page for that light
A runbook linked from the alert
Stop, check oil, add oil, call a mechanic
Check, mitigate, escalate
A new driver can follow the manual
A new on-call engineer can follow the runbook
A gauge that always reads the same
A vanity metric that tells you nothing

04Why Do We Need It?

⏱️Faster detection
The right charts make a problem obvious in seconds, not after customers complain.
πŸ”Faster diagnosis
Drill-down from symptom to cause cuts the time spent guessing.
🧯Faster, safer fixes
A tested runbook avoids risky improvisation under stress.
😴Calmer on-call
Knowing there is a guide makes a 3 a.m. page much less scary.
🧠Knowledge that stays
The fix is written down, so it does not leave when a person does.
🀝A shared picture
Everyone in an incident looks at the same screen and talks about the same facts.
Data is only useful if a tired human can read it quickly and know what to do next. Dashboards and runbooks make that possible.

05Where Do We Use It?

🚨On-call and incidents
The first screens opened when a page arrives.
πŸš€Release watching
Watch error and latency charts, with deploy markers, while a canary or rollout runs.
πŸ“ˆCapacity planning
Saturation trends show when you need more servers, disks or connections.
🧾SLO tracking
Show how much of the error budget has been used this month.
πŸ§‘β€πŸ«Training new people
Runbooks and dashboards teach a new engineer how the system behaves.
πŸ—£οΈBusiness views
Orders per minute and sign-ups per hour, for people who are not engineers.

Common tools: Grafana, Datadog, Kibana, Amazon CloudWatch and similar. Runbooks often live in a wiki, in the same repository as the code, or inside an incident tool such as PagerDuty.

06Types / Parts / How It Works

Kinds of dashboards

KindWho looks at itWhat it shows
Service health (overview)On-call engineerThe four golden signals for one service, with the deploy markers
Drill-down / debugEngineer finding a causePer instance, per endpoint, per dependency, per region
InfrastructurePlatform teamCPU, memory, disk, network, queue depth, database connections
SLO / error budgetTeam lead, product ownerHow much allowed failure is left this month
BusinessProduct, support, leadersOrders, sign-ups, payments: what customers are doing

The four golden signals

What each signal tells you
⏱️Latencyhow long requests take
πŸ“ΆTraffichow many requests
❌Errorshow many fail
πŸ“¦Saturationhow full it is
Show the percentile (p99), not only the average, for latency.

Parts of a good runbook

PartExample for a high-error alert
Name and link to the alertHighErrorRate on checkout
SymptomMore than 5 % of checkout requests fail for 5 minutes
ImpactCustomers cannot buy. Browsing still works.
Check firstDid a deploy happen just before? Open the deploy markers.
Fix or reduce harmRoll back, or turn off the new feature flag
EscalateIf still failing after 15 minutes, page the service owner
Owner and last review datePayments team, reviewed in March
Dashboard layout: top to bottom
Top: user-facing symptoms
❌Error rate
⏱️p99 latency
πŸ“ΆTraffic
↓drill down
Middle: the service itself
πŸ“¦Saturation
πŸ–₯️Per instance
πŸ”€Per endpoint
↓drill down
Bottom: dependencies
πŸ—„οΈDatabase
🧠Cache
🌐Other services
Put the answer to 'are users hurting?' at the top, and the detail below.
VisualizerVanity numbers vs golden signals, with and without a runbookPick an incident. Switch between the vanity dashboard and the golden-signals one, then turn the runbook on and off and change how long the on-call engineer has known the service.
What went wrong in production?

Version 2.8 went out 6 minutes ago and the checkout code throws errors.

Which dashboard does the team have?
Is there a runbook?
What the on-call engineer sees on the dashboard right now
Latency (p99)
240 ms
normal
Traffic
400 req/s
normal
Errors
18 %
normal is 0.2 %
Saturation
47 %
normal
Runbook: Bad deploy
  • Symptom: Error rate above 5 % right after a release.
  • Impact: Checkout fails for most customers.
  • Check first: Open the deploy marker on the error chart. Did the errors start at the deploy?
  • Fix: Roll back to the last good version (one command). Watch the error chart fall.
  • Escalate: If errors stay high after the rollback, page the service owner.
Minutes until the problem is fixed (illustrative)
detect
diagnose
fix
Detect
2 min
an alert on a golden signal
Diagnose
4 min
the panels point to the cause
Fix
5 min
follow the steps
Total
11 min
customers are affected
The dashboard shows what is wrong, and the runbook says what to check and what to do. Anyone on call can follow it.

The minutes are made-up numbers (illustrative) to show how the pieces add up. Real times depend on your team, your tools and the problem.

07How to Use It / Steps / Implementation

Building a dashboard and a runbook

  1. 1
    Start from the user
    Ask: how do we know customers are happy? Put those charts (errors, latency, traffic) at the top.
  2. 2
    Add saturation and the key dependencies
    Show how full the service is, and the health of the database, cache and other services it calls.
  3. 3
    Use percentiles for latency
    Plot p50, p95 and p99. An average hides the slow requests that real users feel.
  4. 4
    Mark events on the charts
    Add vertical lines for deploys, flag changes and config changes. Most incidents start with a change.
  5. 5
    Label units and show thresholds
    Say ms or %, and draw the alert line, so nobody has to remember what is normal.
  6. 6
    Write a runbook for every page-worthy alert
    One alert, one runbook. Keep it short: symptom, impact, check first, fix, escalate.
  7. 7
    Link them together
    The alert message contains the dashboard link and the runbook link. Do not make people search at 3 a.m.
  8. 8
    Test and review
    Have a new engineer follow the runbook in a drill. Fix the steps that confuse them. Add a review date.
πŸ’‘Automate what the runbook keeps saying
If a runbook step is always "run this command", turn it into a script or an automatic action. The best runbook is one that becomes unnecessary.
⚠️Keep it short and current
A runbook nobody has read for a year is probably wrong. A wrong runbook is worse than none, because people trust it. Put an owner and a last-reviewed date on each one.

08Key Terms to Know

TermMeaning in easy words
DashboardA screen of charts and numbers that shows system health
RunbookA step-by-step guide for handling a specific alert or task
PlaybookA wider guide for a type of event, such as a major outage, often with roles and communication
Golden signalsLatency, traffic, errors and saturation
SaturationHow full a resource is (CPU, memory, connections, queue)
Percentile (p99)The value that 99 % of requests are faster than. Shows the slow tail.
Vanity metricA number that looks good but does not help you act (total users ever, uptime of one process)
Drill-downClicking from a summary chart into more detail
On-callThe engineer who is responsible for responding to alerts right now
SLOService level objective: a target such as 99.9 % of requests succeed
Error budgetThe amount of failure the SLO still allows this period

09Pros, Cons and Trade-offs

βœ… Pros
  • Problems are spotted and located faster
  • Responders follow steps instead of guessing
  • Knowledge is written down and shared
  • New engineers can handle incidents sooner
  • Everyone looks at the same facts during an incident
⚠️ Cons
  • Dashboards and runbooks go out of date
  • Too many charts hide the important ones
  • Writing and testing runbooks takes time
  • Runbooks can give false confidence for new kinds of failure
  • A dashboard can show a symptom and still not explain the cause

Trade-offs

ChoiceWe gainWe lose
Few charts, focusedClarity, fast readingSome detail is one click further away
Many charts on one pageEverything is visibleNoise, slow pages, and nobody knows where to look
Detailed runbookAnyone can follow itLong to write, and quick to go stale
Short runbookEasy to read and keep updatedMay skip steps a newer engineer needs
Manual stepsSimple, human judgementSlow and easy to get wrong when tired
Automated fixFast and consistentNeeds engineering work, and can act wrongly on a false alarm

10Common Problems and Mistakes

Common mistakes

  1. Vanity dashboards. Total users, uptime of one process and requests served today never show a problem.
  2. Averages only. The average latency looks fine while 1 in 100 users waits 5 seconds.
  3. Charts without context. No units, no threshold, no deploy markers, so nobody knows what is normal.
  4. One giant dashboard. Sixty charts on a page. Make an overview and link to detail pages.
  5. Alerts with no runbook. The page arrives and the responder has no idea what it means.
  6. Stale runbooks. The commands changed a year ago, and the runbook still says the old ones.
  7. Hero knowledge. Only one person knows the fix, and that is not written down anywhere.

Things to watch

🧟Dead dashboards
Charts for services that no longer exist. Delete them, or people lose trust.
πŸ”—Broken links
An alert that links to a deleted page. Test the links from the alert itself.
🎨Misleading scales
A chart that starts at 95 % makes a tiny dip look huge. Pick axes with care.
πŸ”Secrets in runbooks
Never paste passwords into a wiki. Point to the secrets manager instead.

11Real-World Examples

πŸ“˜Google SRE
The golden signals come from Google’s Site Reliability Engineering book, and runbooks are linked from alerts.
πŸ“ŠGrafana at many companies
Teams build service dashboards from metrics stored in Prometheus or similar systems.
🧯Incident tools
Services such as PagerDuty and Opsgenie can attach a runbook link to every page.
πŸ›οΈShopping events
Retail teams watch orders per minute next to errors and latency during sales.
πŸ—οΈRunbooks as code
Some teams keep runbooks in the same repository as the service and review them with code changes.
πŸ€–Automated runbooks
Common steps (restart, scale out, fail over) are turned into scripts that a button or an alert can run.
πŸ“Note
Tool names and features change often. The ideas here (golden signals, linked runbooks, drill-down) stay the same across tools.
Mini case: the checkout error alert
πŸ””Alerterrors above 5 %
→↓dashboard
πŸ“ŠDeploy markererrors began at 14:02
→↓runbook
↩️Roll backerrors fall at 14:09
Detect Diagnose Fix
One alert leads to the evidence and to the steps.
Share of incident time spent finding out what is wrongillustrative: good dashboards shrink this

12Related Topics to Read Next

Three Pillars of Observability→

The logs, metrics and traces that feed a dashboard.

Alerts and Monitoring→

The alert is what sends you to the dashboard and runbook.

Metrics and Instrumentation→

How the numbers on the charts are produced.

Distributed Tracing→

The next click after a chart shows a slow service.

Log Aggregation→

Where you read the details once the chart points to a cause.

Canary Releases→

A dashboard with deploy markers is how you judge a canary.

13Interview Questions with Short Answers

14Quick Revision Cheat-Sheet

  • βœ”Dashboard: one screen for health. Runbook: steps for one alert.
  • βœ”Golden signals: latency, traffic, errors, saturation.
  • βœ”Layout: user symptoms on top, then the service, then dependencies.
  • βœ”Latency: show p95 and p99, not just the average.
  • βœ”Context: units, thresholds and deploy markers on every chart.
  • βœ”Runbook parts: symptom, impact, check first, fix, escalate, owner.
  • βœ”Link them: the alert carries both the dashboard and the runbook link.
  • βœ”One line: β€œA dashboard tells you what is wrong, and a runbook tells you what to do.”
← Previous
Alerts and Monitoring
Next β†’
SLOs and Error Budgets