PagerDuty for guarded rollouts is available to customers on a Guardian plan. To learn more, read about our pricing. To upgrade your plan, contact Sales.
This topic explains how to use the LaunchDarkly PagerDuty integration for guarded rollouts.
You can use guarded rollouts to notify you or automatically roll back changes that have a negative effect on your app’s performance. The PagerDuty integration for guarded rollouts lets you send alerts to PagerDuty when LaunchDarkly detects a regression, and resolve incidents when a rollout is rolled back.
There are two ways to route alerts to the correct service in PagerDuty: by using PagerDuty’s Event Orchestration, or by adding the integration directly to the service.
We recommend using Event Orchestration routing rules. This option lets you:
To learn more, read PagerDuty’s documentation on Event Orchestration and how to set it up.
After you set up Event Orchestration to route events to your PagerDuty services, you can copy the integration key from the Integrations section of this Event Orchestration. You need this integration key to configure the integration in LaunchDarkly.
In PagerDuty, add the LaunchDarkly integration to a PagerDuty service by following the instructions at Add integrations to an existing service. After you have added the integration, copy the Integration key to use in the next step.
You need to add the LaunchDarkly integration to a PagerDuty service only once, even if you are configuring multiple integrations to target that service in LaunchDarkly.
To set up the integration, you must first obtain an Integration Key from PagerDuty, then configure the integration in LaunchDarkly.
To configure the PagerDuty for guarded rollouts integration in LaunchDarkly:
Your PagerDuty instance now receives events from LaunchDarkly.
Alert events will include the projKey, envKey, flagKey, and tags for the flag, which can be used to correctly route alerts. Here’s an example payload for an alert sent to PagerDuty from LaunchDarkly:
You must configure a separate PagerDuty integration in LaunchDarkly for each LaunchDarkly environment you want to send events to PagerDuty from.