Skip to main content

How does Spike Protection work, and how can I configure notifications in Sentry?

How does Spike Protection work, and how can I configure notifications in Sentry?

Spike Protection in Sentry is a feature designed to manage sudden surges in event volume, ensuring system stability and cost control. This article explains the scope of Spike Protection, notification options, and how to configure alerts for your projects.

What Does Spike Protection Cover?

Spike Protection applies to the following event types:

  • Transactions/Spans

  • Errors

  • Attachments

However, it does not apply to logs. To monitor surges in log volume, you can use Pay-As-You-Go budget limits or organization Spend Notifications. These tools provide alternative mechanisms for detecting and managing unexpected increases in log activity.

Notification Options for Spike Protection

When Spike Protection activates for a project, Sentry can send notifications to keep you informed. Notifications include details such as the duration of the spike and an estimate of dropped events. These alerts can be configured to notify specific channels or individuals, depending on your preferences.

Configuring Slack Notifications

To set up Slack notifications for Spike Protection:

  1. Navigate to Settings > Spike Protection in Sentry.

  2. Expand the project for which you want to configure notifications.

  3. Click Add Action and select Slack as the notification method.

  4. Choose the Slack channel where you want to receive alerts.

  5. Save your changes.

Sentry will now post a notification to the selected Slack channel when Spike Protection activates and another when it ends. These notifications include the duration of the spike and an estimate of dropped events. You can repeat this process for other projects you want to monitor.

Alternatives for Monitoring Logs

Since Spike Protection does not cover logs, consider using the following alternatives:

  • Pay-As-You-Go Budget Limits: Set budget thresholds to monitor and control costs associated with log surges.

  • Organization Spend Notifications: Configure notifications to alert you when spending on logs exceeds predefined limits.

These tools help you stay informed about log activity and manage costs effectively.

Related Topics

  • Configuring Alerts in Sentry

  • Managing Event Volume with Spike Protection

  • Setting Up Spend Notifications

By understanding the scope of Spike Protection and configuring notifications effectively, you can ensure better monitoring and control over your projects in Sentry.

Did this answer your question?