Alerting basics
Choose useful alert conditions
What would you do if this alert fired? Start with that question, then work out your threshold, missing-data checks, and reminders.
Three results, three different meanings
Queue a notification. If the next check still matches, notify again.
No notification. Resolve any open incident.
No notification. Keep any open incident unresolved and review History.
Missing data here means a NULL or empty query result, not a count of zero. COUNT(*) returns 0 when no rows match, so 0 < 100 is a match.
An alert lands in Slack: “Revenue changed.” You open it, but now what? Is that a problem? Who should look into it?
Before you set a threshold, ask yourself what you’d do if the alert fired. If you can’t answer that yet, start there.
Start with an action
“Yesterday’s completed order revenue is below our review threshold” gives you more to work with. You know which number needs a closer look. Give the alert a name that describes the problem, then send it to the team that can investigate.
You don’t need to watch every metric at once. Pick a few that matter, and write down where the data comes from, what should trigger a notification, who will respond, and what they’ll check first. The alert tells you something needs a look. It doesn’t tell you why it happened.
Choose a window that matches your data
Kisu checks every 12 or 24 hours. That makes it a fit for numbers you review once or twice a day, not problems that need an immediate response. Don’t use it for real-time incident detection or safety-critical monitoring.
Say your daily import finishes in the morning. If you check today’s numbers before it’s done, they may look low simply because some data hasn’t arrived. Use the previous complete day, or leave enough time for the import to finish.
In BigQuery, set that time window in your SQL. In Google Sheets, the calculation includes all rows below the column header you select, so make sure those rows cover the period you want to check.
Make the comparison explicit
The alert editor needs four things: a numeric column, a calculation such as Sum, a comparison, and a threshold. For BigQuery, use one read-only SELECT to get the data you need, then load its numeric columns. For Sheets, choose the spreadsheet, tab, and column.
Suppose your threshold is 100. Try a value below it, one above it, and exactly 100. Should that last value trigger the alert? It’s worth deciding now, rather than wondering later why a notification did or didn’t arrive. And choose a threshold that makes sense for your team, not just the number in an example.
Treat missing data as a separate outcome
No notification doesn’t always mean everything is fine. A check can fail. A BigQuery query can return NULL or an empty result, and a Sheets column can have no numeric values. Those no-data results and failed checks don’t send a notification or resolve an open incident.
If you want an alert when there are no rows, make the query return a number you can check. For example, use a BigQuery COUNT(*) column, choose Sum, and set the condition to equal 0. COUNT(*) returns a numeric 0 when the time window contains no rows. That’s different from having no result to compare.
Check History regularly for failed checks and no-data results. Otherwise, you could mistake a check that isn’t working for a metric that’s doing well.
Plan for repeat notifications
Do you want one heads-up, or a reminder while the problem continues? New alerts notify just when the issue starts. Choose As long as the issue persists if you want another notification on every matching check. At a 12-hour interval, that can mean two scheduled notifications a day; at 24 hours, one.
When a check no longer matches the condition, Kisu resolves the open incident without sending a notification. If the condition matches again later, it opens a new incident and notifies you again.
If you keep dismissing an alert, revisit its threshold. If nobody is responsible for it anymore, pause it. And when you look at History, check whether the notification was sent, not just whether the condition matched.

