Skip to content

How to get a push notification when a droplet goes down

DigitalOcean has no push for a droplet that goes down: resource alerts watch metrics such as CPU, uptime checks watch a URL or host, and both are sent by email or Slack. Duskwatch is an independent iPhone app for DigitalOcean; it checks your team about every minute and pushes when a droplet is off or a check is down.

Updated

  • Email, Slackwhere DigitalOcean sends resource and uptime alerts
  • 4 regionsan uptime check can test from
  • ~1 minbetween checks by the read-only alert server
  • 2 checksin a row before a droplet counts as off

01Step 1

Set up a resource alert in DigitalOcean

Resource alerts, called alert policies in the API, tell you when a droplet is under strain. They watch metrics, not whether the droplet is on.

  1. 1

    Install the metrics agent

    Only droplets running the DigitalOcean metrics agent can be picked for a resource alert.

  2. 2

    Open Monitoring, then Resource Alerts

    In the control panel, choose Create Resource Alert.

  3. 3

    Pick a metric, a threshold and a window

    For example CPU above 90% over 10 minutes. Windows run from 5 minutes to 1 hour.

  4. 4

    Choose who hears it

    Team email addresses, a Slack channel, or both.

From the DigitalOcean docs

Which metrics a resource alert can watch

From the DigitalOcean docs

02Step 2

Add an uptime check for what visitors see

A droplet can be running while the site on it is down. An uptime check requests a URL or pings a host from up to four regions.

  1. 1

    Create the check

    HTTPS, HTTP or ping, from Asia East, Europe, USA East and USA West.

  2. 2

    Add a Downtime alert

    A latency alert stays silent when the endpoint cannot be reached at all.

From the DigitalOcean docs

Which uptime alerts exist, and where they go

From the DigitalOcean docs

03Step 3

Turn on push alerts in Duskwatch

Pushes come from a small EU server with its own read-only permission, so they arrive while the app is closed. Push alerts are part of Duskwatch Pro.

  1. 1

    Open the Alerts tab

    Tap "Turn on alerts", then "Continue".

  2. 2

    Allow notifications

    iOS asks once. Without notifications, alerts cannot reach you.

  3. 3

    Approve read-only access

    Tap "Continue to DigitalOcean" and pick the same team on the DigitalOcean page.

  4. 4

    Choose alerts

    "Droplet is off or gone" and "Uptime check is down" are on from the start.

  5. 5

    Send test alert

    A "Test alert" push proves this iPhone receives them.

04The push

What arrives on the Lock Screen

A droplet that stops is an outage, so its push is time-sensitive and repeats until someone answers. The recovery arrives as its own push.

  • A reboot, shutdown, power-off or power cycle that started just before is treated as planned, and sends nothing.
  • A droplet that disappears from the team sends "web-01 is gone".
A droplet down, a check down and the recovery, with synthetic names
  • Time sensitive

    web-01 is off

    acme-prod

    Off since 02:14.

  • client-blog is down

    acme-prod

    Down in 3 regions since 02:14.

  • web-01 is back on

    acme-prod

    Was off for 9 min.

05Answer

Answer it: "I'm on it", snooze or mute

Every choice works from the notification itself, or from the droplet in the app.

  • "I'm on it"

    Stops the reminders on every device of the account; teammates see it was acknowledged.

  • "Snooze 30 min"

    Quiet for half an hour, then one reminder if web-01 is still off.

  • "Mute alerts…"

    From the droplet's ⋯ menu: 1, 8 or 24 hours, or "Until I turn it back on".

  • Quiet hours

    Alerts arrive silently overnight; "Let outages through" still lets a down droplet sound.

What Duskwatch doesn't do here

  • No droplet CPU or memory thresholds: keep resource alerts for those
  • No SMS, phone calls or escalation chains
  • No checks of a port or process inside the droplet

Questions

  • Can DigitalOcean send a push notification when a droplet goes down?

    No. Resource alerts and uptime checks notify by email or Slack, and no resource alert metric is the power state. A push on your iPhone needs an app such as Duskwatch.

  • Do I need the metrics agent?

    For resource alerts, yes. Duskwatch reads the power state from DigitalOcean, so its droplet alert works without the agent; its disk alert needs the metrics.

  • How fast does the push arrive?

    The alert server checks your team about every minute, and a droplet has to look off on two checks in a row. Delivery also depends on Apple and your Focus settings.

  • Will a reboot I start myself wake me up?

    No. When a reboot, shutdown, power-off or power cycle started shortly before the droplet went off, it counts as planned and no alert is sent.

  • Should I keep the DigitalOcean alerts?

    Yes. Keep resource alerts for CPU and memory and an uptime alert by email as a second channel; the push adds the phone, not a replacement.

Duskwatch is on the App Store, for iPhone.

Download on the App Store

Basic monitoring is free; alerts, most actions and advanced features are part of Duskwatch Pro. See plans and prices