Skip to main content

Create Error Threshold Alerts

Error threshold alerts notify your team at Warning and Critical levels when the errors in a group reach a threshold in a time window you set. Notifications are sent through your workflow integrations, for example, as a message in Slack or as a ticket in Jira, so your team can investigate a spike as soon as it starts.

To be notified about new errors or fingerprints instead, see Create Issue Based Alerts.

Prerequisites​

Alerts are sent through a workflow integration, so set up the integration you want to notify first. See Workflow Integrations.

Ways to Create an Error Threshold Alert​

You can create an error threshold alert in two ways. Both open the same Export alert based on query dialog.

MethodWhereUse it when
From the Explore viewExplore > Export as > AlertYou want the alert to monitor the errors that your Explore filters return, such as crashes in your production release channel.
From the Alerts settingsProject Settings & Docs > Alerts > Error Threshold Alerts > Create an alert hereYou want to create the alert directly from the project settings, without building a query first.

Create an Alert from the Explore View​

Create the alert from the Explore view when you want it to monitor a specific set of errors. The alert uses the filters and grouping of your Explore query, such as crashes in your production release channel grouped by fingerprint.

Step 1: In your project, click Explore in the top navigation bar. Filter the errors you want to monitor, and select how to group them from Group errors by, such as fingerprint. The alert thresholds apply to each group.

Error type, Platform, Group errors by, Errors normalized by, and View as options in the Explore view

Step 2: Click the Export as icon at the top-right of the Explore view, next to Save view.

Export as icon next to Save view in the Explore view

Step 3: From the menu, select Alert. The Export alert based on query dialog opens with your query. If the project already has alerts similar to your query, the dialog shows a message with a View alerts in settings link, so you can check the existing alerts before you create another one.

Export as menu with the Metric and Alert options, with Alert highlighted

Step 4: Fill in the following fields:

Sr. No.FieldDescription
1Group byHow the errors are grouped for the alert, such as fingerprint. The thresholds apply to each group.
2Alert nameA name for the alert, such as Production Crash Spike.
3ThresholdsThe time window, in minutes, to count errors over, set in Over the last.
4AggregationThe value to check, such as error - count. To check more values, click Add aggregation.
5WarningThe condition and value that trigger a Warning alert, such as Greater than or equal 10. Leave it set to No threshold to skip the Warning level.
6CriticalThe condition and value that trigger a Critical alert, such as Greater than or equal 20. Leave it set to No threshold to skip the Critical level.
7Notification intervalThe minimum time, in minutes, between notifications, set in Space notifications by.
8IntegrationsThe workflow integration to send notifications to. To add another integration, click Add integration.
Export alert based on query dialog with numbered Group by, Alert name, Thresholds, Aggregation, Warning, Critical, Notification interval, and Integrations fields

In this example, the alert sends a Warning when any fingerprint gets 10 or more new errors in 5 minutes, and a Critical alert when it gets 20 or more new errors in 5 minutes. Notifications are spaced by at least 15 minutes.

Step 5: Click Save. The alert appears in the project settings, on the Error Threshold Alerts tab of the Alerts page, with its name and status.

Saved Production Crash Spike alert in the list on the Error Threshold Alerts tab

Create an Alert from the Alerts Settings​

Create the alert from the Alerts settings when you want to set it up without leaving the project settings.

Step 1: In your project, click your profile icon in the top-right corner, and then select Project Settings & Docs.

Project Settings & Docs option in the profile menu

Step 2: In the left menu, under Workflow, click Alerts. The Alerts and notifications page opens.

Alerts option under Workflow in the Project settings menu

Step 3: Select the Error Threshold Alerts tab.

Error Threshold Alerts tab on the Alerts and notifications page

The tab lists the existing error threshold alerts of the project, with their name and status.

List of error threshold alerts with their name and status
tip

To build the alert from an Explore query instead, click Create an alert in Explore. The Explore view opens, and you can continue from Create an Alert from the Explore View.

Create an alert in Explore button on the Error Threshold Alerts tab

Step 4: Click Create an alert here. The Export alert based on query dialog opens.

Create an alert here button on the Error Threshold Alerts tab

Step 5: Fill in the fields. The fields are the same as when you create the alert from the Explore view. For a description of each field, see Step 4 of Create an Alert from the Explore View.

To check how the aggregations look on your data before you save the alert, click Preview aggregations in explore.

Export alert based on query dialog opened from the Alerts settings, with the Preview aggregations in explore button

Step 6: Click Save. The alert appears on the Error Threshold Alerts tab.

Saved alert in the list on the Error Threshold Alerts tab

View Alert Notifications​

When a threshold is met, Error Reporting sends a notification to the configured integration. The notification includes a link to the alert's Activity feed.

Example error threshold alert notification in Slack

The Activity feed shows when the alert was triggered, its level, and the groups that met the threshold, so your team has the information it needs to investigate the spike.

Activity feed with the time, type, example groups, and group details of a triggered alert

Manage Error Threshold Alerts​

You manage error threshold alerts from the Error Threshold Alerts tab and from the details page of each alert. To open the tab, follow Steps 1 to 3 of Create an Alert from the Alerts Settings.

View Alert Details​

Step 1: On the Error Threshold Alerts tab, click the View details icon (>) next to the alert.

View details icon next to an alert on the Error Threshold Alerts tab

Step 2: Review the alert details. The details page shows:

  • The alert status, such as Alert is active.
  • The time window and grouping, such as Over the last 5 minutes for any fingerprint.
  • The conditions for the Warning and Critical alerts, such as 10 or more new errors occur.
  • The integrations that are notified, and the notification interval.
  • The Mute until option and the Timeline of the alert.
Details page of an error threshold alert with its status, thresholds, integrations, Mute until option, and Timeline

To go back to the list, click All alerts.

Edit an Alert​

Step 1: On the details page of the alert, click Edit alert. The alert dialog opens with the current settings.

Edit alert button on the details page of an alert

Step 2: Update the fields, and then click Save. For a description of each field, see Step 4 of Create an Alert from the Explore View.

note

Attribute filters can't be edited from the Alerts settings. For alerts with attribute filters, use the Explore view.

Disable or Mute an Alert​

Disable an alert to stop it from sending notifications, or mute it to pause notifications for a limited time, for example, while your team fixes a known issue.

  • To disable the alert, click Disable next to Alert is active on the details page.
  • To mute the alert, select a time from the Mute until dropdown list, such as 1 hour from now, and then click Mute.
Disable option and Mute button on the details page of an alert

View the Alert Query in Explore​

Step 1: On the details page of the alert, click View in explore.

View in explore button on the details page of an alert

Step 2: The Explore view opens with the query of the alert, so you can see the errors that the alert monitors.

Explore view showing the errors grouped by the query of the alert

Delete an Alert​

On the Error Threshold Alerts tab, click the delete icon next to the alert.

Delete icon next to an alert on the Error Threshold Alerts tab