PlanetScale webhooks: failed backups, storage and out-of-memory events as signals

Send a PlanetScale database's webhooks to Pulso and turn failed or missing backups, storage thresholds, out-of-memory restarts and schema recommendations into signals.

PlanetScale sends webhooks about a database’s life: backups, storage thresholds, out-of-memory restarts, maintenance, deploy requests and schema recommendations. It names the event in the body, so one Pulso webhook source can take every database’s events and each monitor picks its own.

Connect PlanetScale#

Add PlanetScale to Pulso to create a webhook source called PlanetScale; it shows these steps with the source’s URL and secret, then creates the monitors below that you pick, with their playbooks and a report. To start from scratch instead, create a webhook data source called PlanetScale.

  1. In PlanetScale, select the database, then Settings > Webhooks and click Add webhook. It takes a database administrator.
  2. Paste the source’s Endpoint URL, https://hooks.pulso.run/webhooks/<id>/<token>.
  3. Paste Bearer <secret> as Authorization header. The secret is the source’s Signing secret, under Signatures with the Bearer token scheme: Add to Pulso makes one up and refuses deliveries without it; from scratch, set a long random one there.
  4. Select the events the monitors below read, backup.failed, backup.succeeded, cluster.storage, branch.out_of_memory and branch.schema_recommendation, and click Save webhook.
  5. From the webhook’s … menu, click Test webhook. A webhook.test event shows up under the source’s Recent events.

Webhooks belong to a database, so repeat this for each database, all pointing at the same source. The CLI creates one with pscale webhook create <database> --events "backup.failed,backup.succeeded,cluster.storage,branch.out_of_memory,branch.schema_recommendation" --url <Pulso URL> --authorization-header "Bearer <secret>", disabled until you enable it with pscale webhook update; the API, with POST /organizations/{organization}/databases/{database}/webhooks and "enabled": true.

What arrives#

This is PlanetScale’s example of a backup.failed event, trimmed:

{
  "timestamp": 1698252879,
  "event": "backup.failed",
  "organization": "myorg",
  "database": "example_database",
  "resource": {
    "id": "k2n8pqw4x1yz",
    "type": "Backup",
    "name": "2026.08.27 15:04:05.123",
    "state": "failed",
    "size": 0,
    "started_at": "2026-08-27T15:04:06.001Z",
    "completed_at": "2026-08-27T15:12:44.890Z",
    "restored_branches": [],
    "actor": null,
    "backup_policy": {
      "id": "p0licy12abcd",
      "name": "production",
      "frequency_value": 12,
      "frequency_unit": "hour"
    },
    "database_branch": {
      "id": "q9x7ylb3hcmx",
      "type": "Branch",
      "name": "main"
    }
  }
}

Its monitors see these columns:

Column Value
timestamp 1698252879
event backup.failed
organization myorg
database example_database
resource.id k2n8pqw4x1yz
resource.name 2026.08.27 15:04:05.123
resource.state failed
resource.started_at 2026-08-27T15:04:06.001Z
resource.restored_branches [], the whole list in one column
resource.actor null
resource.backup_policy.name production
resource.backup_policy.frequency_value 12
resource.backup_policy.frequency_unit hour
resource.database_branch.name main

Every event has timestamp, event, organization, database and a resource shaped like the API’s answer for that object.

Monitors to build#

Failed backups#

Heartbeat: a backup that never finished#

A backup that hangs sends neither backup.succeeded nor backup.failed. A heartbeat monitor with the filter event equals backup.succeeded, Frequency custom at the backup policy’s schedule, such as 0 */12 * * * in UTC, and a grace period longer than a backup takes, an hour, raises a signal when one is missing. With several databases, give each its own, adding database equals that database and resource.database_branch.name equals main: one backup would otherwise stand in for all of them.

Storage running out#

Out-of-memory restarts#

Schema recommendations#

Limits#

Sources: PlanetScale’s webhooks and webhook events docs, the pscale webhook command and the create a webhook API.


Add PlanetScale to Pulso: a webhook source, 5 monitors with their playbooks and a report, then these steps with the source's URL.

Add to Pulso

See the monitors, their playbooks and the report