Watch your DigitalOcean droplets from your iPhone
A droplet is a Linux-based virtual machine on DigitalOcean, and a powered-off droplet is still billed until it is destroyed. Duskwatch is an independent iPhone app for DigitalOcean, in development; it shows every droplet with its metrics and what looks wrong, sends a push when one goes off, and reboots it behind a swipe and Face ID.
Updated
- 5charts: CPU, memory, disk, bandwidth and load
- Offstill billed until destroyed; the app flags it
- 90%disk used sends a push; a warning comes earlier
- 6power and snapshot actions, each behind a swipe
01Metrics
Status and metrics at a glance
Every droplet shows its state in words and a symbol: Active, Off, or busy with an action such as Rebooting. Its charts start on 6 h and switch to 1 h, 24 h or 7 days.
From DigitalOcean's docs
Default droplet graphs need nothing on the droplet. The CPU, load average and memory graphs need DigitalOcean's metrics agent, a small utility that runs on the droplet.
DigitalOcean docs: track droplet performance (external link), verified
Monitoring alert policies can watch CPU, memory and disk utilization, among other metrics, and notify by email, Slack, or both. Only droplets with the metrics agent can be selected.
DigitalOcean docs: manage alert policies (external link), verified
02Findings
Findings: what looks wrong, and why
A status says a droplet is running. A finding says what is wrong with it anyway, with the evidence and a next step.
Disk full in ~5 days at this rate
Free up space, or resize the disk or volume.
SSH is open to the internet
A cloud firewall allows port 22 from any address.
Off, still billed
web-02 is powered off but keeps costing money.
No restore point
Backups are off and there are no snapshots of this droplet.
All seven droplet findings, and the next step for each
| Finding | What it means | Next step the app suggests |
|---|---|---|
| Disk full in ~5 days at this rate | The root filesystem is filling at a steady pace | Free up space, or resize the disk or volume |
| SSH is open to the internet | A cloud firewall allows port 22 from any address | Limit port 22 to your IP in the firewall |
| No cloud firewall | Every port web-01 listens on is reachable, unless its own firewall filters it | Attach a cloud firewall in DigitalOcean |
| Off, still billed | web-02 is powered off but keeps costing money | If you no longer need it, snapshot it and destroy it in DigitalOcean |
| No metrics for 20 min | DigitalOcean still says Active, but the metrics agent stopped reporting | Open the console in DigitalOcean, or add an uptime check |
| Restarted 3× in 24 h | Something keeps crashing it, or someone keeps restarting it | Check the recent actions and the droplet's logs |
| No restore point | Backups are off and there are no snapshots of this droplet | Turn on backups or take a snapshot in DigitalOcean |
03Alerts
A push when a droplet goes off or fills up
With alerts on, the push names the droplet and the team, so you know which client it is before you unlock the phone.
- Off means off without a power action from your team. A droplet that disappears sends "web-02 is gone".
- A disk past 90% used repeats, up to 3 times, until someone taps "I'm on it". Both limits are yours to change.
- Mute web-01 from its screen, on every device, for up to 24 hours or until you unmute it.
Disk alert coverage, and the alert scope
The disk alert needs DigitalOcean's metrics agent. Up to 20 droplets per team are checked, those tagged prod or production first.
A team's alert scope can narrow its pushes to chosen droplets or whole DigitalOcean projects. Alerts for the rest are still recorded, marked "Not in your alert scope".
04Actions
Six actions, each behind a swipe and Face ID
Power on, shut down, power off, reboot, power cycle or take a snapshot. A sheet names the action, the droplet and the team; the swipe arms it and Face ID confirms it.
What each action does, and what its swipe reads
| Action | The swipe reads | What it does |
|---|---|---|
| Power on | Swipe to power on web-01 | Starts a droplet that is off |
| Shut down | Swipe to shut down web-01 | Asks the operating system to stop cleanly |
| Reboot | Swipe to reboot web-01 | Restarts it cleanly; down for a minute or two |
| Power cycle | Swipe to power cycle web-01 | Cuts power and turns it back on, for a droplet that does not respond |
| Power off | Swipe to power off web-01 | Cuts power without a clean shutdown; unsaved data may be lost |
| Take snapshot | Swipe to take a snapshot of web-01 | Saves a disk image you can restore from |
From DigitalOcean's docs
A power off is a hard shutdown and should only be used if a shutdown does not succeed. Powered-off droplets are still billable; to stop the charges, destroy the droplet.
DigitalOcean docs: doctl droplet-action power-off (external link), verified
Backups are automatic disk images taken every 4, 6 or 12 hours, daily or weekly, and you can convert a backup to a snapshot to keep it indefinitely.
05Hand off
Hand off to your SSH app or DigitalOcean
Some fixes need a shell. The droplet screen gets you there in one tap.
Copy the public IP
One tap, for your terminal.
Open in your SSH app
The droplet, in the SSH app you already use.
Open in DigitalOcean
The control panel, for anything beyond the six actions.
Restore points
Backups on or off, the last run, and "Backup overdue" when they fall behind.
What Duskwatch doesn't do here
- No console or terminal in the app
- No creating, resizing, rebuilding or destroying droplets
- No editing cloud firewall rules
- No reading log files on the droplet
- No droplet CPU or memory alerts
Questions
Can I see CPU, memory and disk for a droplet on my iPhone?
Yes, with charts over 1 h, 6 h, 24 h and 7 days. CPU, memory, disk and load need DigitalOcean's metrics agent on the droplet; without it, usually only bandwidth is reported.
Will I know if a droplet goes off?
With alerts turned on, a push arrives when a droplet goes off without a power action from your team, or disappears, and another when it is back on.
Does a powered-off droplet still cost money?
Yes. DigitalOcean bills a powered-off droplet until it is destroyed, and the app shows that as "Off, still billed".
Can I reboot a droplet from my iPhone?
Yes. A sheet names the droplet and team, the swipe arms the reboot, and Face ID confirms it.
Will I know before a droplet's disk fills up?
Yes, with alerts on and the metrics agent installed. A push warns when the disk will fill within 3 days at its current rate, and another at 90% used.