Flag triggers are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
This topic explains how to use LaunchDarkly’s triggers feature with Dynatrace. For example, you can create an alert in Dynatrace that uses a LaunchDarkly trigger to toggle a flag’s targeting on or off when Dynatrace triggers a predefined or custom event.
We recommend specifying a custom Dynatrace alerting profile for your triggers. This ensures that the scope of events that send a webhook to your LaunchDarkly trigger is correct. To learn more about how to create custom alerting profiles, read Dynatrace’s documentation on alerting profiles.
To learn more about how Dynatrace uses triggers, read Dynatrace’s documentation on webhooks.
In order to complete this topic, you must meet the following prerequisites:
In order to configure a LaunchDarkly trigger in Dynatrace, you must perform two steps:
We strongly recommend that you use a custom alerting profile. Alerting profiles specify what Dynatrace event or set of events will invoke the webhook. In the absence of a user-specified alerting profile, Dynatrace’s default alerting profile sends a webhook to LaunchDarkly for all Dynatrace events.
To create a custom alerting profile:
To display event details associated with the invocation of a LaunchDarkly trigger, you must configure a JSON template when you set up the webhook in Dynatrace.
To configure the template:
Create a new webhook in Dynatrace. To learn how, read Dynatrace’s Webhook integration documentation.
Paste the LaunchDarkly trigger URL into the Webhook URL field.
Copy this payload into the Custom payload field in Dynatrace:
LaunchDarkly uses the payload title and url fields to create the main body of trigger change history entries. If you use a different JSON template than the one provided above, you must include the title and url fields or the trigger will not save useful data about the event in the flag’s change history. The url is the URL of your Dynatrace event.
Your new Dynatrace webhook now triggers flag changes based on the action you specified in LaunchDarkly.
For more granular problem detection and alerting, you may want to explore static thresholds in Dynatrace’s custom alerting settings. To learn more, read Dynatrace’s Static thresholds documentation.