DigitalOcean App Platform, from your iPhone
DigitalOcean App Platform is a fully managed platform as a service that deploys applications from Git repositories or container images. Duskwatch is an independent iPhone app for DigitalOcean, in development; it shows what is live and which component is failing, sends a push when an app breaks, and rolls back or restarts it behind a swipe and Face ID.
Updated
- 3 of 4 readyinstead of "Live" when instances are missing
- 7of the 18 alert types watch your apps
- 6app actions, each behind a swipe and Face ID
- 1 h–7 dCPU, memory and restart charts, opening on 6 h
01Health
Crash loop, Unhealthy or "3 of 4 ready", not just Live
A live app with a runtime problem says so on the app list, on Home and in the widget, and joins Needs attention.
Crash loop
"worker keeps restarting · 8 min ago": 3 restarts in 15 minutes.
Unhealthy
"web isn't serving": it fails its health checks and nothing is ready.
3 of 4 ready
"worker: 1 of 2 instances ready".
Restarting
"worker restarted 4 times in the last hour".
Where the health badges come from
With alerts on, the badges come from your open alerts and cost no DigitalOcean requests. Without alerts, the app checks your pinned apps and the first 10 live apps on the list, and reuses each reading for 2 minutes.
02Deploys
When a deploy fails
The push leads with what matters at 2 a.m.: the previous version is still live. Open it for the failed step, its likely cause and what changed.
Still live: 3f2a91c · since 22:40
The commit serving traffic, and since when.
Likely cause: api didn't pass its health check
Labelled as likely, beside the log of the failed step.
What changed
A spec diff, and a compare link to your Git host.
From DigitalOcean's docs
App Platform alerts, including "Failed deployment", are sent by email or Slack. By default, a new app gets email alerts for failed deployments and failed domain configurations.
DigitalOcean docs: App Platform alerts (external link), verified
03Components
One component at a time
Tap a component in the app's Health for its own screen: "Unhealthy · Worker in api-prod", ready instances, size and the live commit.
Instances
CPU, memory and restarts per instance, busiest first: "13 restarts in 1 h".
Last deploy
This component's step in the newest deployment: "Build failed: exit code 1".
Configuration, in words
"GET /healthz on :8080 · every 10 s", size and autoscaling. Never environment values.
Logs in one tap
Crash logs first when it is unhealthy, then runtime and build logs.
Static sites, functions, jobs and databases inside an app
- Static sites: "Served from the CDN", and "Add an uptime check".
- Functions components: stat tiles, without a chart.
- Scheduled jobs: their last runs.
- Databases: "Dev database · PostgreSQL", or "Managed cluster db-prod · PostgreSQL" linked to its cluster. Never a user, password or connection string.
- The component screen reuses what the app screen loaded, so it sends DigitalOcean no requests of its own.
04Charts
CPU, memory and restart charts that open on 6 h
One line per component on the app, one per instance on a component, the busiest emphasised. Gaps are hatched, never drawn as zero.
Crash-loop bands
A band named "Crash loop" over the restart bars.
Deploy markers
A ◆ for each deploy, so a spike lines up with its release.
"Alert at 90%"
The threshold of your CPU and memory alert, drawn as a line.
05Alerts
Pushes for crash loops, missing instances and failed jobs
Seven of the 18 alert types watch apps, checking health per component. Three also send a second, quieter push that never repeats.
- Mute api-prod from its ⋯ menu for 1, 8 or 24 hours, or until you unmute it; its alerts are still recorded.
Every App Platform push, and when it is sent
| Push | Sent when | Repeats |
|---|---|---|
| api-prod is unhealthy | A component fails its health checks between deploys | Yes |
| api-prod: instances not ready | Fewer instances ready than requested, on two checks, outside a rollout | No |
| api-prod keeps restarting | A component restarts 3 times in 15 minutes (choose 2 to 10) | Yes |
| api-prod restarted several times | As many restarts within an hour, one of them in the last 15 minutes | No |
| api-prod: deploy failed | A deployment ends in an error | Yes |
| api-prod: scheduled job failed | A scheduled run fails; manual and skipped runs never alert | No |
| api-prod: CPU is high | CPU or memory above 90% for 6 minutes (choose 50–100%, 4–30 minutes) | No |
| static-example: custom domain failed | DigitalOcean reports the app's custom domain in error | No |
| api-prod: deploy is slow | A deploy runs 20 minutes and 3 times the app's usual time | No |
| api-prod: deploy is live | Every deploy that goes live; off until you turn it on | No |
Most have a recovery push, such as "api-prod: all instances ready". During a DigitalOcean incident in the app's region, these alerts, except "deploy is live", wait under the incident's notification.
06Actions
Roll back, redeploy, or restart one component
Roll back, commit or revert the rollback, redeploy, cancel a deployment, or restart an app or one of its components.
Every app action and what its swipe reads
| Action | The swipe reads | What it does |
|---|---|---|
| Roll back | Swipe to roll back api-prod | Returns to an earlier deployment |
| Commit the rollback | Swipe to commit the rollback of api-prod | Keeps the older version; deploys resume |
| Revert the rollback | Swipe to revert the rollback of api-prod | Goes back to the spec from before it |
| Redeploy | Swipe to redeploy api-prod | Deploys the latest commit, optionally with a forced rebuild |
| Restart | Swipe to restart api-prod | Restarts every component |
| Restart one component | Swipe to restart worker in api-prod | Restarts worker one instance at a time, without a new build |
| Cancel deployment | Swipe to cancel the deployment of api-prod | Stops a deployment in progress |
A pinned app keeps a finding until you decide: "Pinned to a rollback: pushes won't deploy". A component restart is blocked while a deploy runs or a rollback is pinned.
From DigitalOcean's docs
By default, a rollback pins the app to the rollback deployment, so no new deployments run, manual or on push, until the rollback is committed or reverted.
DigitalOcean docs: create an app rollback (external link), verified
From DigitalOcean's docs
You can roll back to any of the ten most recent successful deployments. A rollback restores the code, configuration and app spec, but not database data.
DigitalOcean docs: manage App Platform deployments (external link), verified
What Duskwatch doesn't do here
- No creating, scaling or deleting apps
- No editing the app spec or environment variables
- No log storage, and no alerts on log lines
- No standalone Functions or container registry views
Questions
Does App Platform tell me when a deploy fails?
Yes, by email by default, and you can add Slack. Duskwatch adds a push on your iPhone that says whether the previous version is still live.
Can I see which component is failing?
Yes. A live app with a problem shows "Crash loop", "Unhealthy" or "3 of 4 ready" instead of Live, and each component has a screen with its instances, restarts and logs.
Can I restart one component instead of the whole app?
Yes. Choose "Restart worker" on its screen, swipe "Swipe to restart worker in api-prod" and confirm with Face ID. It restarts one instance at a time, without a new build.
Will I know if an app keeps restarting?
Yes, with alerts on. Three restarts in 15 minutes send "api-prod keeps restarting"; a slower run within an hour sends "api-prod restarted several times". Another push says when the restarts stop.