> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/deployment/monitoring-and-analytics/model-monitoring/alerting.md).

# Alerting

Set up Model Monitoring alerts to get notified when inference metrics cross a threshold you define.

The Model Monitoring dashboard allows you to set up notifications for anomaly detection. To create an alert, first navigate to the model monitoring dashboard.

Select the "Alerts" tab, then click "Create New Alert".

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-6d7e8940d61d56b1ced06954fb0d5831bea40d86%2Fmodel-monitoring-alerts.png?alt=media" alt="Model Monitoring Alerts tab with Create New Alert, Active Alert Configurations, and Alert History"><figcaption></figcaption></figure>

1. **Name your alert**. Enter an "Alert Name". It is required, and it identifies the alert in your alert list.
2. **Configure a Rule**. First, choose the model that you would like to create an alert for. Note that only models with a trained version will appear in the dropdown. Furthermore, if your workspace has SSO rules configured, then only models that you have access to will appear.
3. **Choose a version**. Then choose a version of that model. If no version is selected, then all inferences to all of the selected model's versions will be in scope.
4. **Choose a class**. Select a class that you would like to target for your alert.
5. **Choose a metric**. Under "Trigger", select "Average Confidence Detected" or "Number of Detections", choose "Above" or "Below", and enter a threshold. Anytime your inferences cross the threshold, they will trigger an alert.
6. **Choose an alert window**. You can define an alert window. The alert window is a group of inference results that are used to determine whether or not to trigger an alert. For example, if you choose a window of "30 minutes", then only inference results made in the last 30 minutes (on a rolling basis) would be used to determine if the threshold for triggering the alert has been reached. Enter the window in "Interval (minutes)". For "Average Confidence Detected", the alert triggers only when the window has at least the "Minimum Inferences" count (100 by default).
7. Click "Next" to configure notifications.

   <figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-db1264076a9e672d55835bcbe2b86d3a5a802787%2Fmodel-monitoring-create-alert.png?alt=media" alt="Create New Alert dialog for circle detections with average confidence below 0.6 over 30 minutes"><figcaption></figcaption></figure>
8. **Choose alert recipients**. Under "Notify Members", select who gets the alert. The list shows you and your Workspace Admins, and you are selected by default. Select at least one member.
9. **Choose notification limits**. Now choose the maxium number of alerts that we should send by hour and by day. Regardless of how many times the alert is triggered, you will only receive a notification the maximum number of times hourly or daily that you set here.

<figure><img src="https://1583372177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoksNmwps1HmYr8TqHDnX%2Fuploads%2Fgit-blob-58a72f6a6cc975d18c4b02d649d5c2b3f155a533%2FScreenshot%202024-05-23%20at%2021.23.46.png?alt=media" alt=""><figcaption><p>Choose recipients and notification limits</p></figcaption></figure>

Click "Send Test" to email a test alert to the selected members. Click "Create Alert" to save. On the "Alerts" tab, the "Active Alert Configurations" table lists your alerts. Click a row to edit it and click "Update Alert", or click its trash icon to delete it. Open a model's "Alerts" tab to see only that model's alerts.

Alerts are not sent while your Workspace is restricted.
