Flag triggers are available to customers on select plansFlag triggers are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.
Prerequisites
In order to complete this topic, you must meet the following prerequisites:- You must have a feature flag with a “Dynatrace” trigger type. To learn how to create one, read Creating flag triggers.
- You must have access to the trigger’s URL. To learn more about accessing trigger URLs, read Flag trigger security.
- You must have an existing Dynatrace account.
Connect a LaunchDarkly trigger to Dynatrace
In order to configure a LaunchDarkly trigger in Dynatrace, you must perform two steps:- Create an alerting profile in Dynatrace to determine what Dynatrace events you want associated with your trigger, and
- Create a webhook in Dynatrace that includes a custom JSON template that specifies your trigger URL and alerting profile.
Create a custom alerting profile in Dynatrace
To create a custom alerting profile:- Log in to Dynatrace.
- Create a new alerting profile that filters for the specific events you want to be associated with your LaunchDarkly trigger. To learn more, read Dynatrace’s Alerting profiles documentation.
- Give the alerting profile a human-readable Name.
- Click Done in the top right-hand corner of the page.
Create a webhook in Dynatrace with a JSON template
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:
- Select your pre-configured alerting profile from the Alerting profile menu.
- Click Send test notification. If the integration was successful, a “Custom Integration test successful” message appears.
- Return to the LaunchDarkly flag’s Settings page and verify that the test notification has arrived. To do this, click on the trigger’s overflow menu confirm that the execution count has incremented.
- Return to Dynatrace and click Save changes.