Kisu
BigQuery alerts to SlackGoogle Sheets threshold alerts
PricingPrivacy PolicyTerms
← All articles

BigQuery

BigQuery alerts to Slack when row count drops

Is your events table quiet, or has data stopped arriving? Count the last 24 hours of events and set a Slack alert for a number worth investigating.

By Ranggalawe Istifajar

Created October 30, 2026Updated November 5, 2026

A fixed floor for incoming event volume

Illustration · scheduled checks every 12 or 24 hours

1. BigQuery · event_count72 eventsRolling 24-hour window
→
2. Check your conditionSum of event count < 100?Condition met
→
3. Queue a Slack notification
kisu alertsAPP9:00 AM
Review event volume and ingestionTotal event count is 72, below your threshold of 100.BigQuery · example-projectChecked Jan 1, 2026 at 09:00 UTCView alert
Illustrative values, not a percentage-drop calculation. COUNT(*) returns numeric zero for an empty window; Sum preserves the one summary value.

A quiet events table can mean a slow day, or it can mean data stopped arriving. Before you send an alert, decide how quiet is worth a look. We’ll check for fewer than 100 events in the last 24 hours and send the result to Slack. That’s a fixed threshold, not a percentage change from yesterday. Use a number that makes sense for your traffic.

1. Define the rows and time window

Start with a table that has one row per event and a TIMESTAMP column named received_at. Remove retries and duplicates in your query before counting. Also decide which clock matters: when the event happened, or when it reached your table. An event can happen on time and arrive late.

You’ll need an active Kisu subscription, permission to run BigQuery jobs and read the table, and a Slack incoming webhook. Google bills query usage separately, including previews. Use time filters that work with your table’s partitioning to avoid reading more data than you need.

2. Return a numeric count, including zero

SELECT COUNT(*) AS event_count
FROM `your-project.analytics.events`
WHERE received_at >= TIMESTAMP_SUB(
  CURRENT_TIMESTAMP(), INTERVAL 24 HOUR
)
  AND received_at < CURRENT_TIMESTAMP()

Replace the table and timestamp column before running this read-only SELECT. It looks back 24 hours from now, not at the previous calendar day, and excludes future timestamps. If nothing arrived in that window, COUNT(*) returns 0. That gives Kisu a number to check instead of a missing result.

Google explains the counting behavior in its COUNT reference. If you want a percentage drop from yesterday instead, you’ll need to calculate it in SQL and decide what to do when yesterday’s count was zero. This query only checks the fixed threshold.

3. Set Sum of event_count below 100

  1. Connect your BigQuery billing project in Configuration → Connections. Source authorization is separate from Google sign-in.
  2. Add a Slack destination, then use Send test. Follow the Slack webhook guide if needed.
  3. Create an alert named Event volume below review floor and paste the query.
  4. Click Load columns, select event_count, and choose Sum, less than, and 100.
  5. Use Test query, select the tested Slack destination, choose a 12- or 24-hour check, and save.

Use Sum here, even though you’re checking a count. The SQL has already done the counting and returns one summary row. Choosing Count in Kisu would give you 1, whatever the event total was. Sum keeps the number inside that row. Also remember that Test query checks the query, not Slack delivery.

4. Check both sides of the boundary

Try a few values before relying on the rule. A count of 72 should match, as should 0. Counts of 100 and 120 shouldn’t. Use a development dataset or a read-only test query for this. Don’t delete production events just to make the alert fire.

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.

Troubleshooting a low count

When a low-count alert arrives, start with the ordinary explanations: a weekend, an expected quiet period, delayed ingestion, changed duplicate handling, or source permissions. If you really want to know whether a daily import finished, use a data freshness alert instead of guessing from the number of rows.

If the condition matches but no message arrives, check delivery status and test the Slack destination again. Keep the webhook URL private while troubleshooting. The BigQuery-to-Slack setup guide includes editor screenshots if you want to compare your settings.

Put your metric to work

Connect your data and set up a scheduled check. Start with 7 days free, then $12/month. See Pricing for subscription details.

Get started with Google

Keep reading

  • BigQuery data freshness alerts for missing daily imports
  • How to send BigQuery alerts to Slack
  • Choose useful alert conditions
Kisu

Kisu monitors BigQuery and Google Sheets and sends alerts when your conditions are met.

Questions? Contact [email protected].

Resources

  • BigQuery alerts to Slack
  • Google Sheets threshold alerts
  • Pricing
  • All articles

Blog

  • How to send BigQuery alerts to Slack
  • How to set up Google Sheets threshold alerts
  • KPI tracking: turn metrics into actionable alerts

© 2026 Kisu. All rights reserved.

  • Privacy Policy
  • Terms