Whether you’re keeping track of revenue, users, or negative reviews, there are often times when you want to be alerted about something. Metabase has a few different kinds of alerts you can set up, and you can choose to be notified via email or Slack.
To start using alerts, someone on your team who’s an administrator will need to make sure that email integration or Slack is set up first.
Types of alerts
There are three kinds of things you can get alerted about in Metabase:
- When a time series crosses a goal line.
- When a progress bar reaches or goes below its goal.
- When any other kind of question returns a result.
We’ll go through these one by one.
Goal line alerts
This kind of alert is useful when you’re doing things like tracking daily active users and you want to know when you reach a certain number of them, or when you’re tracking orders per week and you want to know whenever that number ever goes below a certain threshold.
To start, you’ll need a line, area, or bar chart displaying a number over time. (If you need help with that, check out the page on asking questions.)
Now we need to set up a goal line. To do that, open up the visualization settings by clicking the Settings button in the bottom-left. Then click on the Display tab, and turn on the “Show goal” setting. Choose a value for your goal and click Done.
Save your question, then click on the bell icon in the bottom-right of the screen.
This is where you’ll get to choose a few things:
- Whether you want to be alerted when the time series goes above the goal line or when it goes below it.
- Whether you only wanted to be alerted every time this happens or only the first time.
- How often you want Metabase to check to see if the goal line has been crossed.
Click Done, and your alert will be all set up! You’ll get an email confirmation, too. If you need to edit or unsubscribe from the alert you set up, just click that same icon. You’ll see the Edit and Unsubscribe buttons. This is also where you’ll see alerts about this question that administrators might have added you to.
Progress bar alerts
Setting up this kind of alert is really similar to setting up a goal line alert. First, create a question that returns a single number as its result, then choose the Progress Bar chart type from the Visualization menu. Open the settings menu to select a goal value, click Done, then save your question.
Next, click the bell icon in the bottom-right and you’ll see that same screen of options for when you want to get alerts about this progress bar.
Lastly, you can get an alert when one of your saved questions returns any result. This kind of alert is the most useful if you have a question that doesn’t usually return any results, but you just want to know when it does return results.
For example, you might have a table called
Reviews, and you want to know any time a customer leaves a bad review, which you consider to be anything below three stars. To set up an alert for this situation, you’d go and create a raw data question (i.e., a question that returns a list of reviews), and add a filter to only include results with one or two stars.
You probably don’t want to be alerted about all the bad reviews you’ve ever gotten, but just recent ones. So you can add a filter to only include results from yesterday or today, depending on how often you want to check for these bad reviews. At this point, when you check the results of this question, it probably won’t return any results, which is a good thing.
Save the question, the click on the bell icon in the bottom-right of the screen, and select how often you want Metabase to check this question for results. That’s it!
Adding additional recipients to your alerts
If you’re an administrator of your Metabase instance, you’ll be able to see and edit every alert on all saved questions. You’ll also see some additional options to add recipients to alerts, which look like this:
You can add any Metabase user, email address, or even a Slack channel as a recipient of an alert. Admins can add or remove recipients on any alert, even ones that they did not create themselves.
There are a few ways alerts can be stopped:
- Non-admins can unsubscribe from any alert that they’re a recipient of.
- Admins can edit and delete any alert. This can’t be undone, so be careful!
- Admins on some paid plans can view, edit, and delete all dashboard subscriptions and alerts in the Audit tab.
- If a saved question that has an alert gets edited in such a way that the alert doesn’t make sense anymore, the alert will get deleted. For example, if a saved question with a goal line alert on it gets edited, and the goal line is removed entirely, that alert will get deleted.
- If a question gets archived, any alerts on it will be deleted.
Viewing existing alerts
To view a list of all alerts and dashboard subscriptions that people have set up in your Metabase, click on the gear icon in the upper right and select Admin settings > Audit > Subscriptions & Alerts. See Audit.