Skip to main content
Sync Sentry alert events to Flashduty through webhook.

In Flashduty On-call

You can get the integration push URL in either of the following ways.

Use a dedicated integration

Choose this option if all alerts go to one channel. It’s the simpler setup.
  1. In the Flashduty console, select Channel and open a channel
  2. Select Configuration → Integrations → Private integration, then click Add integration
  3. Select Sentry integration and click Save to generate a card
  4. Open the generated integration card and copy the Push URL

Use a shared integration

Choose this option if you need to route alerts to different channels based on the alert payload.
  1. In the Flashduty console, go to Integration Center → Alert Events
  2. Select Sentry integration:
    • Integration Name: Define a name for this integration
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL

Configure in Sentry

Sentry provides two types of alert mechanisms: Issue Alerts and Metric Alerts. While Issue Alerts support notifications through WebHooks in Integrations, Metric Alerts are limited to using Internal Integration for alert notifications. Notably, Internal Integration works with both Metric Alerts and Issue Alerts. Given the versatility of Internal Integration, we’ve chosen to standardize on this approach rather than relying on WebHooks separately, thus simplifying alert notification configuration.
1

Create an Internal Integration in Sentry

Where: Sentry › Settings › Developer Settings › Custom Integrations › Create New Integration › Internal IntegrationIn older Sentry versions the entry is Settings → Custom Integrations.Alert Rule Action settings of the Internal IntegrationAfter configuration, click Save Changes to complete the setup.Webhooks settings of the Internal IntegrationSpecial notes about WEBHOOKS configuration:
  1. After checking issue, Flashduty can receive resolved events for issues, meaning when manually triggering resolved for an issue in the issue list, we will automatically recover the associated incident in Flashduty.
  2. Other issue events such as create, assigned, archived, and unresolved are not supported.
  3. If error and comment are also checked, Flashduty will not receive or process these types of events.
2

Use Flashduty in a Sentry alert rule

Where: Sentry › Alerts › Create Alert
  1. Select the type of Alert to create, such as Issue. Select the alert type
  2. Configure trigger conditions as needed.
  3. Under THEN perform these actions, Add action and select Send a notification via. Add the Send a notification via action
  4. Select the Flashduty integration added above as the notification channel. Select the Flashduty notification channel
  5. Configure other options as needed and click Save Rule.
3

Trigger a real alert and verify

Let the rule match a real issue or metric alert. A few seconds later, the integration in Flashduty shows a Latest event time, which means the setup works. Then mark that issue as resolved in Sentry’s issue list and confirm the matching Flashduty alert recovers.

Status and severity

Alert Key and recovery

Flashduty computes the Alert Key from the object Sentry pushes: metric_alert.id for a metric alert, event.issue_id for an issue alert, and issue.id for an issue-resolved event. A notification whose action is resolved recovers the matching alert; a notification whose action is not in the table above (for example created or assigned) is rejected.