Issue Alert Configuration
Learn more about the options for configuring an issue alert.
Sentry provides several configuration options to create an issue alert based on your organization's needs.
Specify which environment(s) will use this particular alert rule. This control filters on the environment
tag in your events. This filter is helpful because the urgency and workflows you apply to production alerts might differ from those you apply to alerts originating from your QA environment, for example.
The “Environment” dropdown list here has the same environments that are available for the selected project in the common “Environment” filter dropdown (this does not include hidden environments). Selecting "All Environments" is equivalent to having no environment filter.
Specify which project will use this particular alert rule. The created alert rule will only process events from this project.
"When" conditions, or triggers, specify what type of activity you'd like monitored for the issue:
- New issue is created
- Changes state from
resolved
tounresolved
- Changes state from
archived
toescalating
- The number of events in an issue is more than a certain number or has a higher percent change in an interval
- The number of unique users is more than a certain number or has a higher percent change in an interval
- An issue affects more than {X} percent of sessions in {time}
- A new issue is marked as high priority
- An existing issue is marked as high priority
Triggers are optional. If you don’t select a trigger, the "When" conditions are considered met by default. That is, all events will meet this condition.
Learn more about issue states in Issue States & Triage.
This feature is available only if your organization is on a Trial, Business, or Enterprise plan.
When you select the number of events or users affected by an issue as a trigger, you have the option to set that trigger based on percent change. Percent change triggers are useful for alerting you when the number of errors in an issue or the number of unique users affected is significantly different from normal.
For example, an alert can be triggered when an issue is affecting 10% more unique users in an hour compared to a week ago. Another example would be when the number of events in an issue is 40% higher this week than it was 30 days ago.
You can set a trigger for when an issue affects more than {X} percent of sessions in {time}.
Percent of sessions affected is an approximation that's calculated by taking the number of sessions in the last hour and scaling it to the alerting window appropriately. For example, if the alert is configured to look at the last five minutes, the number of sessions is approximated by taking the number of sessions in the last hour and dividing it by 12.
Percent-based alerts will only trigger if the number of sessions in the last hour exceeds 50.
Sentry checks "if conditions", or filters, after “When” conditions are met, and these help control noise by filtering out issues that don’t match your specified criteria. You can filter on issue or event properties. If an event filter is specified, it checks only the event that triggered the alert, such as:
- The issue is older or newer than a certain duration.
- The issue has happened at least {X} times.
- The issue is assigned to {no one/a team/a member}.
- The event is from the latest release.
- The event's {attribute} {matches} {value}. Match types: equals, does not equal, starts with, ends with, contains, does not contain, is set, or is not set.
- The event's {tag} {matches} {value}. Match types: equals, does not equal, starts with, ends with, contains, does not contain, is set, or is not set.
- The event's level {matches} {level}. Match types: equal to, less than or equal to, or greater than or equal to.
Learn more about and tags and event attributes.
"Then conditions", or actions, specify what should happen when trigger and filter conditions are met:
- Send a notification to either Suggested Assignees, a team, or a member.
- Send a notification to an integration, which can include these options, depending on which integrations you have installed:
- Send a Slack notification
- Send a Discord notification
- Send a PagerDuty notification
- Send a Microsoft Teams notification
- Send a notification to all legacy integrations
- Send a notification using an integration built on the integration platform
- Create an issue for an integration, which includes:
Learn more about routing alerts with integrations.
Suggested Assignees include people or teams currently assigned the issue, issue owners defined in ownership rules, and anyone who has been identified as author of a suspect commit. When an alert is triggered, they can choose to be notified via email or Slack (depending on their notification settings).
If no suggested assignees are found, the notification will be sent to the teams or members specified in the fallback notification setting, as shown below:
The following members will be notified based on the option selected and their notification settings:
- All Project Members: Every team member who has access to the project will be notified. This could potentially notify a large number of people. If two teams have access to the project, every member of both teams will be notified.
- Recently Active Members: The 20 most recently logged-in members, who have access to the project.
- Nobody: No one will be notified.
Teams can configure a Slack channel to receive alert notifications. This can be done by typing /sentry link team
in the desired Slack channel. To view a team's associated Slack channel in sentry.io, navigate to Settings > Teams > [Team] > Notifications.
Notification tests allow you to test if your integrations are working properly. Sending a test notification creates a dummy event and sends a notification to all of the selected integrations.
The action interval, or rate limit, controls how often the alert rule can be triggered for a particular issue. If alert conditions match an issue, Sentry executes the actions only if they haven't already been executed for that issue within the rate limit period. For example, if an issue meets alert conditions multiple times in a one-minute period, but your frequency threshold is one minute, you’ll only be alerted once.
The available intervals are:
- Minutes: 5, 10, 30, 60
- Hours: 3, 12, 24
- Days: 7, 30
The preview displays a list of issues that would have triggered the alert and the last time they would have triggered it.
Rules with any of following can't be previewed:
- The issue is assigned to {no one/a team/a member}.
- The event is from the latest release.
- An issue affects more than {X} percent of sessions in {time}
- No "When" conditions
- Both issue frequency conditions and event filters (filters that start with "The event")
Give your alert a descriptive name, such as the team affected and the topic of the alert. For example, "Frontend Latency", "Backend Failure Rate", or "Billing Apdex".
You can choose a team to associate with an alert so that members of that team can edit the alert. Note that you can only make this association if you are a member of the team. If no team is selected, anyone can edit the alert.
In [Project] > Settings > Alerts, you can configure alert email subject templates and digest settings. Sentry users with owner, manager, or admin permissions and above can change these default notification settings.
The digests feature only works for issue alert emails (not notifications sent through integrations), and unlike the action interval, limits the total number of alert emails sent for the project. This project-level setting allows you to control the minimum and maximum delivery intervals for alerts.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").