About this page
This page is for looking things up: how each kind of CloudWatch widget is drawn, at each size, and exactly which parts of a dashboard's JSON CloudPeek uses. Presets and AI widgets are written in the same JSON, so it applies to them too. To make widgets, see Create a widget.
Creating widgets is now on its own page: Create a widget.
Presets are now on their own page: Presets.
AI widgets are now on their own page: AI widgets.
The Widgets tab is now part of Home Screen and Lock Screen.
Refreshing and freshness are now part of How CloudPeek works.
Widget types
Every CloudWatch metric widget view, plus text and alarm status widgets, becomes a native widget on iPhone, iPad and Android, drawn in your dashboard's colours with its thresholds and axis limits.
| CloudWatch widget | In the JSON | In CloudPeek |
|---|---|---|
| Line | "view": "timeSeries" | A line chart with your horizontal annotations as dashed threshold lines and your y-axis limits. With three series or fewer, each line gets a soft fill. When every series is an amount per day or longer (a Sum or SampleCount, or a DIFF of a running total such as the month-to-date charge) with a period of a day or more, it's drawn as a column per period instead, each day from midnight in your time zone. The CloudWatch console still draws a line. |
| Stacked area | "view": "timeSeries", "stacked": true | A stacked area chart. Positive values stack upwards and negative ones downwards. Amounts per day or longer are stacked columns, as for Line. Currency is stacked biggest first, by the latest value the legend shows: the biggest at the bottom and first in the legend. |
| Bar | "view": "bar" | Horizontal bars, one per metric, each showing its latest value. Currency, and lists too long to fit, are sorted biggest first. |
| Pie | "view": "pie" | A donut, with the total in the middle when there is one, and a legend with each slice's value. Currency is sorted biggest first. |
| Number | "view": "singleValue" | The latest value, large, with its change from the previous data point. Add "sparkline": true for a sparkline, or "trend": false to hide the change. |
| Gauge | "view": "gauge" | A 270° arc on the range set by the y-axis min and max, or 0 to 100 if they're not set. |
| Table | "view": "table" | One row per metric with its latest value, and its minimum and maximum on medium and larger widgets. With "table": {"layout": "vertical"}, a row for each period instead, newest first, with a column for each metric: one on small widgets, up to three on larger ones. Each row is named by its day when the period is a day or more, each day from midnight in your time zone, and otherwise by its time. |
| Text | "type": "text" | Your Markdown: see text widgets. |
| Alarm status | "type": "alarm" | Your alarms, in alarm first, then not enough data, then any it can't find, then OK. See Alarm lists. |
| Logs Insights, Metrics Explorer, custom | "type": "log", "explorer", "custom" | Not supported yet. CloudPeek says so on the dashboard, and doesn't offer them to add. |
When a list doesn't fit
- Bars: if adding the leftover bars up makes sense (currency, or counts and sums of the same metric), the last bar becomes a grey Other bar with their total. Otherwise you'll see “+N more”. The bars shown are those furthest from zero, or the lowest when the widget's levels are Below (see Warning and alarm levels).
- Totals: a bar or pie widget shows a Total when the dashboard has one, such as the account-wide
EstimatedChargesrow or aSUM(METRICS())expression. That row isn't drawn as a bar of its own. A currency widget with several bars totals them itself. - Pie: every slice is drawn; the legend lists as many as fit, then “+N more”. If the total is bigger than the slices add up to, the difference is a grey Other slice.
- Legends on line and stacked area charts list up to four series on medium widgets (fewer at larger text sizes) and four on large ones, each with its latest value, then “+N more”. Small widgets have no legend.
- Tables and alarm lists show as many rows as fit, then “+N more”. A table with a row for each period shows the newest, then “+N earlier”.
Sizes
Every widget comes in every size. CloudPeek previews each one before you add it. On Android, you choose a home screen widget's size by resizing it, and it shows the layout for the room it has: small from 110 × 110 dp, medium from 250 × 110 dp and large from 250 × 250 dp. On a home screen four apps wide, that's 2 × 2, 4 × 2 and 4 × 4 cells.
| Shows | Small | Medium | Large, extra large |
|---|---|---|---|
| Bars, and pie legend entries | 3 | 4 | 9 |
| Line and stacked area legend entries | None | Up to 4 | 4 |
| Numbers | 1 | 2 | 4 |
| Gauges | 1 | 3 | 3 |
| Alarms and table rows | 3 or 4 | As many as fit | As many as fit, about a dozen |
- Small widgets have no legend and no footer. An alarm widget leads with its headline, such as “1 in alarm”.
- Medium and larger widgets add a refresh button, a legend, and a footer with the time window and when it was updated, such as “Last 3 hours · Updated 14:05”. Alarm lists say how long ago each alarm changed.
- Large widgets add more axis labels. Extra large, on iPad, is the large layout with more room; on Android, each layout is drawn to fill the room you give it.
- A bar widget with a Total gives one of its places on small and medium widgets to the Total.
- Rows that fit depend on your text size; any more are counted as “+N more”.
- On iPhone, StandBy shows small widgets, drawn larger and on black, and a Mac's desktop shows the iPhone's small, medium and large ones (see StandBy and On your Mac).
Alarm lists
An alarm widget lists alarms in this order, each with its state:
| Symbol | State |
|---|---|
| Red triangle | In alarm (ALARM) |
| Grey question mark | Not enough data to evaluate yet (INSUFFICIENT_DATA) |
| Grey dashed circle | Not found: check the alarm's ARN, name, region and account |
| Green tick | OK |
- Within each state, alarms keep the order the widget lists them in, or, with
"sortBy": "stateUpdatedTimestamp", the most recent change comes first. - Medium and larger widgets say how long ago each alarm changed state.
- The headline, on small widgets and the Lock Screen, reads N in alarm in red when any alarm is in alarm, All OK in green when every one is OK, No data when none has enough data yet, and otherwise N unknown, counting those without data or not found.
- The Alarm summary preset counts alarms in each state instead, such as “2 failing, 4 insufficient data, 14 OK”: see Presets.
- An alarm preset across every account gives each account a line, most serious first, with its most serious state's symbol, such as “prod: 2 failing”; Alarms lists the account's alarms that aren't OK under it. See Alarms in every account.
Lock Screen
Lock Screen widgets, on iPhone and iPad, show one headline value, so you can read it without unlocking. Android phones don't have Lock Screen widgets.
| Widget | Headline value |
|---|---|
| Line | The latest value of the first series with data. |
| Stacked area | The total of the series' latest values (those on the same axis as the first). |
| Bar, pie | The total, if there is one; otherwise the bar furthest from zero (the lowest, when the widget's levels are Below), with its name. |
| Number, gauge | The first value. On the circular Lock Screen widget, a gauge is drawn as an iOS gauge. |
| Table | The first row's latest value; for a table with a row for each period, the newest value of its first metric. |
| Alarm status | The headline, such as “1 in alarm” or “All OK”; for the Alarm summary preset, its summary, such as “2 failing, 20 OK”. |
| Text | Nothing to show: text widgets are for the Home Screen. The Lock Screen says “Unavailable”. |
- Rectangular: the title, the value, and the series or bar it came from (or a warning if it's out of date).
- Circular: the value and a caption of about 8 characters from the title.
- Inline, above the clock: the value and the title, cut to whole words of about 18 characters.
- Levels: a value past the widget's warning or alarm level has that level's symbol beside it, as the Lock Screen draws in one colour (see Warning and alarm levels).
Overview widgets
An Overview widget shows two to four of your widgets as their latest values (see Several values in one widget): two on a small widget, four on medium and larger ones, and, on iPhone and iPad, the first on the Lock Screen.
- The value is each widget's Lock Screen headline value, in the table above. An alarm widget, the Alarm summary preset too, shows its headline, such as “1 in alarm” in red with a red triangle, “All OK” in green with a green tick, or “No alarms” when it has none. An alarm widget across every account shows the line of its most serious account that needs a look instead, such as “prod: 2 failing” or “dev: sign in to refresh”, so an account that couldn't be read isn't hidden behind the others' “All OK”.
- Levels: a value past its widget's warning level is amber with a circled “!”, and past its alarm level red with a triangle, as in the widget itself (see Warning and alarm levels). It's the value shown that's measured; a total of bars, which isn't, takes the worst level any of its bars is past.
- The trend, an arrow and percentage such as “+12%”, is how the value changed since the point before it: for a number when its widget shows a trend, a gauge, and a line or stacked area graph. Bars, pies, tables, alarms and graphs drawn as columns have none: a column is usually a period still under way, such as today's spend so far.
- Text widgets have no value, so an Overview doesn't offer them.
- A widget that couldn't refresh keeps its last value and says why in place of its trend, in orange: “Sign in to refresh”, “Account not added” or “Not updated since 14:05”; with no value to keep, “Access denied”, “Couldn't reach AWS” and the like. Data more than a day old is faded.
Dashboard settings CloudPeek uses
CloudPeek reads the dashboard's JSON and queries it the way the CloudWatch console does. Presets and AI widgets are written in the same JSON, so all of this applies to them too.
Supported
- Metrics: metric rows with the
"."and"..."shorthands; metric math,SEARCHand Metrics Insights (SELECT … FROM SCHEMA(…)) expressions;"visible": falsefor inputs that shouldn't be drawn. - Per metric:
id,label(including dynamic labels such as${PROP('Dim.ServiceName')}and${LAST}),color,stat,period,region,accountIdandyAxis. - Per widget:
title,view,stacked,stat(Average if not set),period,region,accountId,start,end,setPeriodToTimeRange,sparkline,trend, y-axisminandmaxon either side, horizontalannotations(value, colour, axis, andvisible), and"legend": {"position": "hidden"}. - Right y-axis: metrics with
"yAxis": "right"are drawn on their own scale, labelled on the right. - Per dashboard:
start,endandperiodOverride. - Alarm widgets:
alarmsandsortBy.
Not used
- Annotation labels and y-axis labels (the lines and limits are drawn, without their text), annotation bands (only their first edge is drawn), and vertical annotations.
- Legend positions other than hidden,
liveData,singleValueFullPrecisionand table summary options. - Dashboard variables: widgets use the values saved in the dashboard.
Time range and period
- Time range: the widget's
startif it has one, otherwise the dashboard's, otherwise the last 3 hours. Relative ranges such as-PT3Hor-P7Dand absolute timestamps both work. Every widget shows the window it covers, such as “Last 3 hours”. - Period: the metric's
period, otherwise the widget's, otherwise 5 minutes. Like the console, CloudPeek raises it when the range would need too many points (more than 300, or 1,440 with"periodOverride": "inherit"), stepping through 1 minute, 5 minutes, 15 minutes, 1 hour, 3 hours, 6 hours, 1 day, 1 week and 30 days. - Older data has a coarser resolution in CloudWatch, so ranges starting more than 15 days ago use at least 5-minute periods, and more than 63 days ago at least 1-hour periods.
setPeriodToTimeRangemakes number, gauge, bar, pie and table widgets use one period for the whole range, as in the console.
How values are shown
- Numbers have three significant figures, with K, M, B and T for thousands, millions, billions and trillions:
1.23K,45.6M. A value that three figures would round to a misleadingly round number keeps more, so 99.96 isn't shown as 100. CloudWatch units aren't shown, so put the unit in the label, such as “Latency (s)”. - Currency: when every metric on a widget is
AWS/BillingEstimatedChargesin the same currency, values are shown as money: with cents under 100, whole amounts up to 10,000, then compact, such as$12.3K. ASEARCHofAWS/Billingthat doesn't name aCurrencyis shown in US dollars, the only currency AWS publishes charges in. - Service names on billing widgets are shortened:
AmazonEC2becomes EC2 andAWSLambdabecomes Lambda. - Labels: a metric without a label is named after the metric, or after the dimension values that tell it apart from the others on the widget.
- Trends on numbers compare the latest data point with the one before.
- Colours: your
coloron each metric, otherwise CloudWatch's default palette. - Warning and alarm levels: a number, gauge, bar or graph's latest value past a level you set in CloudPeek is amber or red, with a symbol (see Warning and alarm levels). CloudPeek writes its levels into the widget as horizontal annotations marked
"cloudPeekLevel", which graphs draw as dashed lines. Your dashboard's own annotations are drawn as lines too, but never colour a value.
Accounts, regions and limits
- Regions: each metric uses its own
region, then the widget's, then the account's default region in CloudPeek. One widget can mix regions; CloudPeek queries each in parallel. - Accounts: each widget refreshes with the account it was created for. To show another account's metrics on one widget, use
accountIdon the metric with CloudWatch cross-account observability, or add that account to CloudPeek and create the widget for it. - Alarms are looked up in the account the widget was created for, in each ARN's region. The alarm presets read up to 1,000 alarms in the region they were added in (only those whose names start with the text chosen under Show, if one was); past that, those in
ALARMare the ones kept. - Size: a widget can request up to 500 metrics per region at once, and keeps up to 400 points per line. Graphs draw at most 30 series: a line graph shows the 30 with the highest values, and a stacked graph adds the rest up as Other.
Text widgets
Text widgets are handy for a runbook note next to the graphs. CloudPeek shows:
- Bold, italic,
codeand links. - Headings, as bold lines.
- Bulleted lists (
*,-or+), as bullets. - CloudWatch's buttons,
[button:Label](https://…), as plain links.
Horizontal rules are left out, and runs of blank lines are closed up. Tables, images and code blocks are better kept to the dashboard in the console. A text widget without a title is named after its first line.