Skip to content

Send SQLite backup incidents to Better Stack

Open a Better Stack incident when a backup threshold fires and resolve it with the same incident ID.

Create an incoming webhook

  • Map the incoming webhook

    In Better Stack, open Integrations, choose Importing data and add an Incoming webhook. Map Alert ID to the full incident.id, Title to incident.title and Cause to incident.description.

  • Connect Litebackup

    As an admin, open Alerts and choose Add destination. Select Better Stack and name the destination. Paste the incoming webhook URL into HTTPS URL. Set both rules shown below before testing. Choose Add destination to save it.

Better Stack selected with a single HTTPS URL for the incoming webhook. Better Stack selected with a single HTTPS URL for the incoming webhook.

Match both webhook rules

Paste each example into Better Stack’s Sample webhook data field to check which rule matches.

{
  "incident": {
    "id": "backup-alert-42",
    "status": "firing",
    "title": "Litebackup · High CPU utilization",
    "description": "Litebackup · High CPU utilization on backups.example.org. Peak 97%, threshold above 90%. https://backups.example.org/console/alerts"
  }
}

Set the firing and recovery conditions

Create an incident when incident.status equals firing. Under Resolving incidents, change Never to a condition matching incident.status against resolved. Use the same Alert ID for resolution.

Check that one incident opens and resolves

On the Alerts page, choose Send test alert in the destination’s controls. The test can page a person. Check that both the trigger and recovery were accepted.

In Better Stack, include resolved incidents and open the test. The incoming webhook should create one incident from the first request and resolve it from the second. Allow for any recovery period configured on the webhook.

Fix an incident that stays open

Check that the resolve rule matches the literal value resolved. Use the full incident.id for both rules. The title changes between firing and recovery, so it cannot reliably identify the incident.

Enable alerts

Check how many alerts are firing before choosing Enable delivery. Each server sends its open alerts immediately, then reports new alerts and recoveries for all enabled thresholds.

Install

Install Litebackup and back up a SQLite database to start monitoring it. Choose another paging service or chat channel in the alert integrations guide.