Dashboards
Shared views of the metrics that matter.
A good dashboard answers a specific question at a glance, such as whether the service is healthy. Too many dashboards mean nobody looks at any of them. Product and system metrics side by side help connect cause and effect.
Why it matters for a product engineer
A dashboard is useful when it answers one question fast: is the service healthy, did the release work, are users completing the main task? Teams often build many dashboards, and then nobody knows which one to open during an incident. Product engineers can put product metrics next to system metrics, so a fall in signups and a rise in errors appear on the same screen.
How to do it
- Write the question the dashboard answers in its title or first line.
- Put the most important graphs at the top: what customers experience, such as availability and latency.
- Show the time zone, use the same time range on every graph, and avoid horizontal scrolling.
- Link each high-level graph to the more detailed dashboard behind it.
- Use alarms to detect problems, and dashboards to investigate them. Review dashboards in a regular meeting, and delete the ones nobody uses.
Common mistakes
- Dashboards that only engineers can read, with no product metrics.
- One huge dashboard with every metric the service emits.
- Graphs with different time ranges or time zones on the same screen.
- Expecting people to notice problems by watching dashboards.
Example
Amazon explains how it builds dashboards in its Builders’ Library. The most important dashboards show customer experience, with overall availability and end-to-end latency at the top. Graphs fit the smallest expected screen, because an on-call engineer on a laptop at 3 AM may not see a horizontal scroll bar. Shared dashboards default to UTC. Amazon also notes that most of the time nobody watches dashboards, so automated alarms detect problems, and dashboards help find the cause.
How Amazon moves from an alarm to the cause
Nobody watches dashboards all the time, so alarms start the search. The dashboards then lead from what customers see to the part at fault.
ReportedAmazon Builders' Library, Building dashboards for operational visibility
Sources: Building dashboards for operational visibility (Amazon Builders' Library) ↗ · Monitoring (The Site Reliability Workbook, chapter 4, Google) ↗
Resources
1- bookGo deeper
Monitoring (The Site Reliability Workbook, chapter 4) ↗
Google SRE · 20 minPractical monitoring setups, from choosing metrics to moving from an alert to its cause.
Tools
1- ToolOpen source
Grafana
Open-source dashboards for metrics, logs and traces from almost any data source.