# Send SQLite backup alerts to PagerDuty

Page the engineer on call when a backup threshold fires and resolve the same PagerDuty alert when the server recovers.

## Connect a PagerDuty service

- **Get the service’s integration key**. On the PagerDuty service that owns backups, open Integrations and add Events API V2. Copy its Integration Key. The service’s escalation policy decides who gets paged.
- **Connect Litebackup**. As an admin, open Alerts and choose Add destination. Select PagerDuty and name the destination. Paste the key into Routing key. Leave HTTPS URL blank for a US account or enter https://events.eu.pagerduty.com/v2/enqueue for an EU account. Choose Add destination to save it.

- [PagerDuty service integrations](https://docs.pagerduty.com/incident-management/services/services-and-integrations)

![PagerDuty selected with the Routing key field and the optional regional HTTPS URL.](https://litebackup-cdn.com/media/e0909c326cf75cef-11-alert-pagerduty.png)

## Trace a test through PagerDuty

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.

Open the service’s alert history and include resolved alerts. Look for “Litebackup test alert firing” and its resolution. Both requests carry the same `dedup_key`. An incident grouping several alerts can stay open while another alert still needs attention.

## Find the service that received the alert

If PagerDuty accepts the test but nobody gets paged, check the alert on the service first, then check its escalation policy and event rules. Litebackup sends triggers with critical severity. If the request itself fails, check the routing key and the account region. [PagerDuty service regions](https://docs.pagerduty.com/get-started/service-regions).

## 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.

## Add the destination from the server CLI (US endpoint)

As an alternative to the console form, run this on the Litebackup server and enter the credentials at the prompt.

```bash
# Add the destination from the Litebackup server host.
litebackup server alert-destination add \
    --provider pagerduty \
    --name "PagerDuty"
```

## Install

[Install Litebackup](/install) and [back up a SQLite database](/back-up-sqlite-while-your-app-writes) to start monitoring it. Choose another paging service or chat channel in the [alert integrations guide](/sqlite-backup-alerts).
