BigQuery
How to send BigQuery alerts by email
Email one person when a BigQuery metric crosses your threshold. Write one query, add a tested email destination, and schedule checks every 12 or 24 hours.
From a signup count to an email
Illustration · scheduled checks every 12 or 24 hours
Not everyone who needs to know about a number lives in Slack. An operations lead, a founder, or a client may only read email. This guide sets up a scheduled BigQuery check that emails one person when a metric crosses a threshold. The example counts yesterday’s new trial signups and sends an email when there are fewer than 20.
What BigQuery can email you on its own
BigQuery scheduled queries can email you when a scheduled run fails. That tells you the query broke. It doesn’t tell you the result needs attention: a run that succeeds with a worrying number sends nothing. See Google’s scheduled queries guide for the current options.
To get an email about the value itself, something has to read the result and compare it with your threshold. That’s the part Kisu does.
1. Write a query that returns the number
Kisu runs one read-only SELECT. It then calculates Sum, Average, Minimum, or Maximum over a numeric column, or Count over the result rows. This query returns a single row, so Sum of that one value is the signup count itself:
SELECT COUNT(*) AS trial_signups
FROM `your-project.analytics.signups`
WHERE plan = 'trial'
AND DATE(created_at, 'UTC') = DATE_SUB(CURRENT_DATE('UTC'), INTERVAL 1 DAY)Use the previous complete day, so an early-morning check doesn’t see half a day of signups. Replace UTC with the timezone your team reports in. COUNT(*) returns 0 when no rows match, so a day with no signups still produces a number that can trigger the alert.
2. Add an email destination and test it
In Kisu, open Configuration → Notification destinations and add an Email destination. It starts with your account email. Keep it, or enter the address of the person who should act on the alert. Each email destination has one recipient, not a list, CC, or BCC. If several people need the alert, use a group or shared inbox address.
Click Send test, then check the inbox, including spam. An alert that lands in spam is as good as no alert, so make sure the test arrives before you rely on it.
3. Create the alert
Create a BigQuery alert, choose your project, paste the query, and load its columns. Select trial_signups, choose Sum, set the condition to less than 20, and pick Every 24 hours. Set Starting at to a time after yesterday’s data has landed. Under Notify via, choose the email destination you tested.
Each alert notifies one destination. If a Slack channel also needs this check, create a second alert with the same query. To try the alert now, use Run now. Each alert has three manual runs per channel in any 24 hours.
What the email contains
The subject is the alert name after “Kisu alert:”, so name the alert for the inbox: “Trial signups below 20 yesterday” says more than “Signups”. The body shows the metric, the value, the condition, when the check ran in UTC, and an incident ID. It doesn’t include your SQL or result rows, so the recipient doesn’t need BigQuery access to read it.
Kisu checks every 12 or 24 hours, not in real time. Enter your preferred time under Starting at, using the timezone shown beside the input. Change it in Settings from your email menu. With a 12-hour schedule, you’ll get a second check 12 hours later. New alerts use Just when the issue starts, so one ongoing problem won’t keep sending messages. Want reminders? Choose As long as the issue persists for a notification on every successful matching check. When the condition no longer matches, the incident resolves without a recovery message.
After a check, open History and look at three things: the number, whether the condition matched, and whether the notification was delivered. A failed check or no-data result does not send a threshold notification or resolve an open incident. You can review completed checks and delivery history for 30 days.
For the same setup with a Slack channel, follow How to send BigQuery alerts to Slack. Not sure which to use? Read Slack or email for data alerts.


3. Queue an email