Skip to content

Getting notified ​

Alerts keep an eye on your data so you don't have to. An alert is a check that Diver runs on a schedule. When the check finds something, the alert is raised, and Diver tells the right people by email, Slack, Microsoft Teams or webhook. When things are back to normal, it tells them that too.

How an alert decides ​

The simplest alert is a query that returns rows only when something is wrong:

The query…The alert is
Returns no rowsHealthy
Returns one or more rowsRaised
Fails, for example because of a syntax error or a lost connectionError

The alert follows its latest run. It goes back to healthy by itself the next time the query returns no rows.

An error means Diver couldn't tell whether something is wrong, so it's shown separately from a raised alert: a typo in the query doesn't look like a problem in your data. Open the alert's history to see the error message.

For example, this alert is raised when no orders have come in during the last hour:

sql
SELECT 'No orders in the last hour' AS problem
WHERE NOT EXISTS (
  SELECT 1 FROM orders
  WHERE created_at > now() - interval '1 hour'
)

And this one is raised for every payment stuck in processing for more than a day:

sql
SELECT id, amount, created_at
FROM payments
WHERE status = 'processing'
  AND created_at < now() - interval '1 day'

You don't always need a query of your own. You can also create an alert from a chart or compare with earlier periods.

Create an alert ​

  1. Open Alerts in Diver's sidebar and select +.
  2. Give it an Alert name that says what's wrong when it's raised, such as "No orders in the last hour".
  3. Choose the data source and write the query.
  4. Set the Run interval as a cron expression. Diver shows it in plain English below the field, for example */15 * * * * as "Every 15 minutes".
  5. Choose who to notify (see Notifications).
  6. Select Save.

Schedules run in UTC. The Next check column on the Alerts page shows when each alert runs next.

Filters don't apply to alert queries

Alert queries run without any dashboard filter choices, so filter placeholders behave as if nothing is selected: {created_at=timerange} doesn't limit the rows at all. Write time windows directly in SQL instead, as in the examples above.

Notifications ​

Every alert can notify one or more channels:

ChannelSet up
EmailEnter one or more addresses, or pick workspace members.
SlackConnect Slack under Connections, then pick a channel.
Microsoft TeamsConnect Teams under Connections, then pick a channel.
WebhookEnter a URL. Diver sends a POST request with a JSON body describing the alert.

Diver sends a notification when an alert is raised and again when it recovers. While an alert stays raised, it doesn't send the same message again on every run.

Recipients per alert ​

Each alert has its own recipients, so the right people hear about the right problems: the data team about pipeline checks, finance about payments. Set them under Notify in the alert editor.

Results in the message ​

Notifications include the first rows the query returned, so you can see what's wrong without opening Diver. Name your columns so they read well in a message, such as customer, amount and stuck_since. The message links to the alert in Diver, where you can see every row.

Webhook payload ​

A webhook receives a JSON body like this:

json
{
  "alert": { "id": "…", "name": "Payments stuck in processing" },
  "state": "raised",
  "triggered_at": "2026-11-12T09:15:00Z",
  "row_count": 3,
  "columns": ["id", "amount", "created_at"],
  "rows": [["pay_123", 129.0, "2026-11-10T08:01:12Z"]],
  "url": "https://dashboards.withdiver.com/workspace/…/alerts/…"
}

state is raised or recovered. rows holds the first rows, while row_count counts all of them.

Alerts from charts ​

To alert on a number you already have on a dashboard, open the chart's menu and select Create alert. Choose a condition on the chart's value, such as "revenue is below 1,000" or "error rate is above 5 %". Diver uses the chart's query, so you don't need to write a separate one.

Compare with earlier periods ​

Fixed limits don't suit numbers that rise and fall with the week or the season. Instead of a fixed value, an alert can compare with:

  • The previous period: for example, raised when today's orders are more than 30 % below the same day last week.
  • A moving average: for example, raised when sign-ups in the last hour are more than 50 % away from the average of the last 24 hours.

Choose the comparison under Condition in the alert editor.

Read the Alerts page ​

Each alert's bell icon shows its state:

IconMeaning
Green checkHealthy: the latest run found nothing.
Red circleRaised: the latest run returned rows or met the condition.
Yellow crossError: the latest run's query failed.
Blue pauseSuspended or snoozed: the alert doesn't run.

Alert history ​

Select View history in an alert's menu to see its recent runs, newest first: when each run started, how long it took, and its result. A result is Healthy, Raised with the number of rows the query returned, or Query failed with the database's error message. Use it to spot noisy alerts, to see how long problems take to resolve, and to fix a query that fails.

Snooze an alert ​

When you know about a problem and are already working on it, snooze the alert instead of muting your channels. Select Snooze in the alert's menu and choose for how long: 1 hour, 4 hours, 1 day or until a date. The alert resumes by itself when the time is up.

To stop an alert until you start it again, for example while you rewrite a noisy query, select Suspend. Select Unsuspend to start it again.

Escalation ​

For checks that must not go unnoticed, add an escalation step: if the alert is still raised after a set time, such as 30 minutes, Diver also notifies a second set of recipients, for example the person on call. Add steps under Escalation in the alert editor.

Reach new depths