How to send BigQuery alerts to Slack
Connect BigQuery to Slack with Kisu. Use a SQL count, set a threshold, test your webhook, and schedule alerts every 12 or 24 hours.
From an order count to a Slack message
Check every 12 or 24 hours
To send BigQuery alerts to Slack, connect your BigQuery project in Kisu, add a Slack incoming webhook, and write a query that returns a numeric metric. Set a threshold and a 12- or 24-hour schedule. Kisu checks the metric and sends a Slack notification when the condition matches.
This guide sends an alert from BigQuery to Slack. It does not import Slack messages into BigQuery or copy query result tables into a channel. For supported schedules and limits, see BigQuery alerts to Slack.
We’ll check for fewer than 100 orders in a rolling 24-hour window and notify #operations. The SQL, threshold, and expected result below use the same example. Choose a threshold that matters to your team.
Before you start
- A Kisu account with an active trial or subscription.
- A BigQuery project and access to your orders table. Your Google account needs permission to create query jobs in the project and read the table.
- An orders table with a TIMESTAMP column named
created_at, or an equivalent column you can substitute in the query. - A Slack incoming webhook for the channel that will own the response.
Google bills BigQuery usage separately from Kisu, and test queries count too. Keep the query focused on the time window you need and use your table’s partitioning where you can.
1. Connect your BigQuery project
Sign in with Google and start your trial or activate your subscription. Under Configuration → Connections, add a BigQuery connection. Enter the project that should run and pay for the queries, then approve Google data access. This is a separate step from signing in.
Your Google account needs permission to create query jobs and read the dataset. Job User on the project and Data Viewer on the dataset are examples of roles that provide those permissions. Leave the location on Auto-detect unless you need a specific region.
2. Add and test a Slack destination
Follow the Slack incoming webhook setup guide if you do not have a webhook yet. In Configuration → Notification destinations, add a Slack destination named #operations and paste its webhook URL.
Click Send test, then look for the message in Slack. Check the channel, not just whether a message arrived: the webhook decides where it goes, regardless of the name you give the destination. Keep that webhook URL secret.
3. Write a numeric query and choose the metric
In Alerts, create an alert named Orders need attention and select your BigQuery connection. Paste this query into Query:
SELECT COUNT(*) AS order_count
FROM `your-project.analytics.orders`
WHERE created_at >= TIMESTAMP_SUB(
CURRENT_TIMESTAMP(), INTERVAL 24 HOUR
)Swap your-project.analytics.orders and created_at for your own table and TIMESTAMP column. If your date column uses another type, adjust the timestamp expression before testing. We’re using 100 orders to show how the rule works; choose a number that would actually concern your team.
The query gives Kisu a number in order_count. Kisu handles the comparison. Click Load columns, select order_count as the Metric column, and choose Sum. There’s only one value to sum, so the count stays the same. Set Condition to < (less than) and Threshold to 100. With 72 orders the condition matches; with exactly 100, it doesn’t.
It’s tempting to choose Count here, but that would count the query’s result rows. This query returns one summary row, so you’d get 1, not the number of orders. Keep Sum for this example. Count is useful when your SQL returns individual records, and it doesn’t need a metric column.

4. Test the query
Before saving, click Test query. Look for “Query is valid for alerting,” then check the current value and whether it meets your condition. This runs the calculation in BigQuery and can incur query costs; Load columns only validates the SQL. Neither is a Slack delivery test.
A count below 100 matches; 100 or more doesn’t. An empty or all-NULL aggregation would mean no data, not that everything is fine. Our query avoids that ambiguity for an empty window: COUNT(*) returns numeric 0 when there are no matching orders. Sum keeps it at 0, and 0 < 100 matches.
5. Choose the schedule and save
Set Check frequency to Every 24 hours and Notify via to #operations (slack). Save the alert. Every 12 hours is also available; neither option is real-time monitoring.

The schedule decides when to check. The SQL decides which orders to count. Those are separate settings, so allow for late imports or query the previous complete day if that better fits your data. Enter your preferred HH:MM time under Starting at, using the timezone shown beside the input. Change it in Settings from your email menu. Schedules stay fixed in UTC, so local times can change with daylight saving time. Save and Resume both wait for the next scheduled check; they don’t run it immediately.
6. Review the check and notification
After the next scheduled run, open History. With 72 orders, you should see a metric of 72 and a matching condition. Kisu queues the Slack notification, but check its delivery status too. A matching condition doesn’t, by itself, tell you the message arrived.
In #operations, look for Orders need attention and “Total order count is 72, below your threshold of 100.” The message includes the source, check time, and a link to the alert. The number 72 is illustrative; your notification uses the metric from your scheduled check.
Under When, leave Just when the issue starts selected if one heads-up is enough. Choose As long as the issue persists if you want a reminder on every matching check. When the condition stops matching, Kisu resolves the incident without another message. Query errors and no-data results don’t resolve it.
Troubleshooting
- The query is rejected.
- Return a numeric column with a simple, unique alias, then use Load columns and select it. Do not return a Boolean comparison. Check the aggregation, threshold, project, table, timestamp type, dataset region, and Google permissions.
- The condition matches but Slack has no message.
- Review the notification status in History. Send another destination test and check the webhook’s channel and availability. Keep the URL out of screenshots and support messages.
- The alert repeats every day.
- Choose Just when the issue starts to stop repeat notifications. With As long as the issue persists, every matching check notifies. Review your time window and threshold, or pause an alert that is no longer useful.
Adapt the query to your metric
Keep the same connect, test, and schedule steps for other numeric checks. Use the row-count drop example for event volume, the data freshness example for a missing import, or the daily revenue threshold query for a completed reporting day.
Review the BigQuery alert capabilities and limitations, or read how to choose an actionable condition.


3. Notify Slack if it matches