MORTIMERDEV LABS / AWS / CLOUDWATCH DASHBOARDS FREE · BETA
Build a CloudWatch dashboard.
See your SLOs, users and alarms at a glance.
List your SLOs, RUM app monitor and alarms, and get a dashboard laid out most-urgent-first: alarm status, SLO attainment against the goal, burn rate against the page line, then real users’ traffic, errors and Core Web Vitals. Preview the layout, then copy CDK in TypeScript or Python, or dashboard JSON for the CLI.
Build a dashboard
YOUR DASHBOARD
Layout
The 24-column grid as CloudWatch will lay it out. Lines show goals and thresholds.
Check these
As CDK
TypeScript
Python
Or as dashboard JSON
Save as dashboard.json, replace ACCOUNT_ID in the alarm ARNs, then run:
Show the JSON
See it in AWS
Once it’s deployed: where to find the dashboard, how to check it from the CLI, and what to do when a graph is empty.
In the console
From the CLI
Uses the names you entered above. Run with credentials for the right account and region.
What is a CloudWatch dashboard?
A CloudWatch dashboard is a page of graphs, numbers, alarm states and notes that shows a service’s health in one place. Alarms tell you that something is wrong; a good dashboard helps you see where and how bad, and whether a fix is working. Building it in CDK keeps it versioned with the service.
- Is anything wrong?
- Alarm status, most urgent first
- How bad?
- Attainment and burn rate against their lines
- Who’s affected?
- Traffic, errors and Web Vitals from RUM
Where you’ll use them
- On call, as the first place to look when paged.
- After a deploy, to watch burn rate and errors settle.
- In reviews, to see how the month is going against each SLO.
Easy to confuse
- Dashboards don’t alert: alarms do. A dashboard is for looking, not for waking people up.
- Console edits don’t last on a dashboard managed by CDK.
- More graphs isn’t better: if the first screen doesn’t answer “is anything wrong?”, move things around.
Read more: AWS: CloudWatch dashboardsDashboard body structureCDK: cloudwatch.Dashboardweb.dev: Core Web Vitals
TEST YOURSELF
How well do you know CloudWatch dashboards?
Ten questions on the grid, widgets, annotations, search expressions, what to put first and cost, with an explanation and a link to the reference after each one. Three are worked out by the builder.
CLOUDWATCH DASHBOARDS REFERENCE
Dashboards, in plain English.
Basics
DashboardA page of widgets (graphs, numbers, alarm status, text) that you arrange to see a service’s health at a glance.
Build it in code (CDK) so it’s reviewed, versioned and recreated with the service. Edits made in the console are overwritten on the next deploy.
The 24-column gridWidgets sit on a grid 24 units wide. Width and height default to 6, so four default graphs fill a row.
x runs from 0 to 23. CloudWatch moves widgets up to fill empty space above them, so rows stay aligned when every widget in a row has the same height.
Rows in CDKEach dashboard.addWidgets() call adds a row; widgets in one call sit side by side.
That’s why the generated code adds the header, alarms, each SLO and RUM as separate calls.
Time range and perioddefaultInterval sets how far back the dashboard opens; each graph’s period sets how its data points are grouped.
With the default period override, graphs widen their period automatically when you look at a longer range, so a week still loads quickly.
Widgets
Graph widgetLine (or stacked, bar, pie) charts of one or more metrics, on left and right axes.
Put counts with very different scales on different axes, like page views on the left and errors on the right.
Horizontal annotationsReference lines on a graph, like an SLO goal, a burn-rate page threshold or a “good” Web Vitals value.
A graph can have annotations or one alarm, not both. Lines turn a wiggly graph into a yes/no answer at a glance.
Alarm status widgetA grid of alarms coloured by state. Up to 100 alarms per widget.
Sort by state so anything in ALARM is first. In CDK, Alarm.fromAlarmName() adds alarms that already exist.
Search expressionsSEARCH('{Namespace} MetricName="X" "value"', 'Average', 300) finds every metric that matches, without knowing its exact dimensions.
Quote a value for an exact match. Search only finds metrics with data in the last two weeks, and you can’t alarm on a search expression.
Text widgetMarkdown for a title, what the dashboard is for, and links to runbooks.
A short line explaining how to read the graphs saves the person on call from guessing at 3am.
What to show
SLO graphsAttainment against the goal, and burn rate against 1 (on target) and the page threshold.
Burn rate reacts in minutes; attainment moves slowly over the whole interval. Together they show both “is it bad now?” and “how is the month going?”.
Core Web VitalsMeasure at the 75th percentile. Good is LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1.
p75 means three in four visits were at least that good. Averages hide the slow tail that frustrates people.
Most urgent firstPut alarms and burn rate at the top, and detail lower down.
The first screen should answer “is anything wrong?”. Everything below helps answer “where?”.
Cost and limits
Free tierThree custom dashboards with up to 50 metrics each are free each month; automatic dashboards are free.
Beyond that, dashboards are charged per month (prorated by the hour). Check the price for your region before building lots of them.
Widget limitsUp to 500 widgets per dashboard, 500 metrics and expressions per graph, and 100 alarms per alarm status widget.
A graph can show up to 500 time series and hold up to 100 search expressions. Dashboards that big are hard to read anyway.
Built from AWS’s own docs.
Widget types, grid sizes and limits come from the dashboard body reference; burn-rate lines use the same maths as the SLO builder. SLO attainment uses a search expression because AWS doesn’t document that metric’s dimensions.
Nothing leaves this page.
Everything is worked out in your browser and nothing is saved. We count anonymous page views and button use, never what you enter.
Beta feedback helps shape Labs. Tell Andy what would help
Learn Step 4 of 4 in Observability on AWS: set up, watch, act
