From CloudWatch to your Home Screen
Each time a widget refreshes, CloudPeek:
- Reads the dashboard again, for a widget from a dashboard (
GetDashboard), and finds the widget in it, so edits in the console or from code show up. Presets and AI widgets have no dashboard, so they skip this: an AI widget keeps its definition with the widget, and a preset is made again from the preset as this version of the app has it, keeping its title, region and time range. - Works out the queries the way the CloudWatch console does: time range, period, metric math,
SEARCH, and each metric's region. See the Widget reference. - Fetches the data with one
GetMetricDatarequest for each region the widget uses, in parallel. Alarm widgets callDescribeAlarmsin each alarm's region instead. - Saves a snapshot on your device, in storage only the app and its widgets can read, and the widget draws it.
There's no CloudPeek server in between: see What leaves your device.
When widgets refresh
- On a schedule: every 30 minutes by default. Change it in Settings, under Home Screen Widgets, with Refresh: every 30 minutes, or every 1, 2 or 6 hours, and on Android every 15 minutes too. iOS decides exactly when, based on how often you look at your widgets, and spreads refreshes out on a busy day or in Low Power Mode, so treat it as a guide. iOS gives a widget you look at often roughly 40 to 70 refreshes a day, fewer than every 15 minutes would take, so iPhone and iPad don't offer that: a widget set to it in an earlier version refreshes every 30 minutes. Android decides exactly when too, and may wait while your phone saves battery.
- Less often when AWS updates the data less often: S3 bucket sizes and object counts (
BucketSizeBytesandNumberOfObjects), which S3 reports once a day, refresh every 6 hours at most, and estimated charges (AWS/Billing), which AWS updates a few times a day, every 3 hours at most. Refreshing them more often would show the same figures and be billed again. A widget that also shows another metric refreshes on the schedule. The widget's own screen says when this applies, such as “S3 updates this once a day, so it refreshes every 6 hours rather than every 30 minutes.”, or, when it has no data and already says “S3 reports bucket sizes once a day.”, just “It refreshes every 6 hours rather than every 30 minutes.” - Whenever you open CloudPeek, but for those widgets, until their data is due again.
- When you ask: the refresh button on a medium or larger widget, pulling down on the Widgets tab, Refresh in a widget's More menu, or Refresh Widgets Now in Settings. These fetch every widget, even one whose data AWS updates less often. The widget whose refresh button you tap shows the refresh is under way until its new data is in; on Android, the button turns into a spinning circle, and that widget is refreshed before the others.
Data loaded in the last five minutes, by the app or by another widget, is reused rather than fetched and billed again, unless you've asked for a refresh or a refresh has failed since. S3 storage and billing data is reused in the same way until it's due again.
Alarm notifications come from these refreshes, so they're only as quick: see Get notified when an alarm fires.
When a refresh fails
- The widget keeps its last data and says why and how old it is: “Sign-in expired · data from Fri 14:05” on medium and large widgets, or “Not updated since 14:05” on small ones.
- Data more than a day old fades, so it can't pass for current.
- After a network or AWS hiccup, a widget with recent data tries again within 10 minutes. Other failures, such as a sign-in that ended, wait for the next scheduled refresh: they need you to do something first.
- After your iPhone or iPad restarts, widgets can't read your sign-ins until you first unlock it. They try again every few minutes at first, then less often.
- If Android's secure storage can't be read for a moment, widgets say “Couldn't read your saved sign-in. Will try again shortly.” and try again within minutes at first, then less often.
Every message, and what to do about it, is in Troubleshooting.
What it costs
CloudPeek is free. What it asks AWS for is billed to your AWS account, at CloudWatch's usual prices:
| What | AWS charges |
|---|---|
Each refresh of a metric widget: one GetMetricData request per region | $0.01 per 1,000 metrics requested, counting hidden metrics, such as those metric math reads, and each metric a SEARCH finds. A widget with 5 metrics refreshing every 30 minutes requests about 7,200 a month: about 7 cents. S3 storage and billing widgets refresh less often, so they cost less. |
Each refresh of a dashboard widget also reads its dashboard (GetDashboard); alarm widgets call DescribeAlarms instead of GetMetricData | API requests, billed per request rather than per metric. The CloudWatch free tier covers an account's first million a month. See CloudWatch pricing. |
| Looking at a widget over another time range on its screen, or with the week before | One more GetMetricData fetch of its metrics for each time range you tap, and two with the week before: see Another time range, and the week before. |
| Dashboards you create | The first three are free; after that, $3 a month each. Presets and AI widgets need no dashboard. |
| Writing an AI widget, once | About a cent in Amazon Bedrock, billed to the account; or a few cents with Claude Sonnet 5.5, billed to your Anthropic account. See AI widgets. |
Settings estimates what your widgets cost, under Refresh, and changes the estimate as you change the interval, such as “Your 7 widgets request 40 metrics a refresh: about $0.58 a month refreshing every 30 minutes.” It counts each widget at its own interval and assumes it refreshes on schedule. How many metrics a SEARCH finds is only known when it runs, so for widgets with searches it says what each metric they find adds a month.
To keep an eye on it, add the GetMetricData calls preset: it graphs your account's GetMetricData calls each hour.
When a dashboard changes
Widgets from a dashboard follow it: they find their widget again after it's moved, resized, retitled or edited, and keep their last version if it can't be found. How changes reach your phone has the details.