# Route SQLite backup alerts to Grafana Cloud IRM

Page a Grafana Cloud IRM escalation chain directly from Litebackup when a backup threshold fires.

## Add a Formatted Webhook integration

- **Create a Formatted Webhook**. In Grafana Cloud IRM, open Integrations and choose Monitoring systems. Add a Formatted Webhook, assign the team and configure the escalation chain for backups.
- **Connect Litebackup**. As an admin, open Alerts and choose Add destination. Select Grafana Cloud IRM and name the destination. Copy the integration URL from Grafana and paste it into HTTPS URL. Choose Add destination to save it.

- [Grafana IRM webhook setup](https://grafana.com/docs/grafana-cloud/observe-and-act/respond-to-incidents/integrations/custom-integrations/incoming-webhooks/oncall-webhooks/)

![Grafana Cloud IRM selected with its Formatted Webhook URL field.](https://litebackup-cdn.com/media/c6daee96a04c6ea3-11-alert-grafana.png)

## Inspect the alert group

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.

Find the test in the integration’s alert groups. The first request carries the state `alerting` and the second carries `ok`. The same `alert_uid` ties the pair together.

## Check the integration type and route

If IRM accepts the requests but the group stays open, check that the URL belongs to a Formatted Webhook with its expected field mappings. If the group resolves but nobody was paged, inspect the matching route and escalation chain. To investigate a threshold alongside historical metrics, open the [Litebackup Grafana dashboard](/sqlite-grafana-dashboard).

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

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 grafana \
    --name "Grafana Cloud IRM"
```

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