No results for ""
EXPAND ALL
  • Home
  • API docs

Using flag triggers with Honeycomb

Read time: 3 minutes
Last edited: Dec 14, 2024
Flag triggers are available to customers on select plans

Flag triggers are only available to customers on select plans. To learn more, read about our pricing. To upgrade your plan, contact Sales.

Overview

This topic explains how to use LaunchDarkly's triggers feature with Honeycomb. For example, you can create an alert in Honeycomb that uses a trigger to toggle a flag's targeting on or off if a performance metric drops below a certain threshold.

To learn more about how Honeycomb uses triggers, read Honeycomb's documentation.

Prerequisites

In order to complete this topic, you must meet the following prerequisites.

  • You must have a feature flag with a trigger. To learn more about creating triggers, read Creating flag triggers.
  • You must have access to the trigger's URL, which you copied and saved during the trigger creation process. To learn more, read Triggers.
  • You must have an existing Honeycomb account.

Connect a flag trigger to Honeycomb

Honeycomb triggers and LaunchDarkly triggers are two different terms

Honeycomb uses similar nomenclature to LaunchDarkly when describing actions controlled by webhooks and third-party tools. However, a trigger in Honeycomb is not synonymous as a trigger in LaunchDarkly.

In this topic, we distinguish between the two triggers with the labels "Honeycomb trigger" and "LaunchDarkly trigger."

To connect a LaunchDarkly trigger to your Honeycomb account, you must perform two actions:

  1. Create an integration in Honeycomb that includes your LaunchDarkly trigger, and
  2. Make a Honeycomb trigger based on configuration you specify that uses the LaunchDarkly trigger to perform flag actions.

Both actions are documented below.

Create an integration in Honeycomb

  1. Log into Honeycomb.
  2. Click your username, and then click Team settings.
  3. Click into the Integrations tab.
  4. In the "Trigger Recipients" section, click Add integration.
  5. In the "Provider" section, choose "Webhook" as the type of integration you want to configure.
  6. Give your webhook a human-readable Name.
  7. Paste the LaunchDarkly trigger URL into the Webhook URL field.
  8. Enter any text into the Shared secret field.
  9. Click Add.

Make a Honeycomb trigger and associate it with the integration

Now you must associate the integration you created with a Honeycomb trigger.

  1. Navigate to the query you want to connect to a LaunchDarkly trigger.
  2. Click the overflow menu.
  3. Choose "Make trigger."
  4. Give your trigger a human-readable Name.
  5. Make any configuration you need until you get to the "Recipients" section.
  6. In the "Recipients" section, click Add Recipient and choose "Webhook -- [Your webhook's name]" from the menu.
  7. Verify your information and click Add.
  8. Click Create trigger.

Now alerts in your Honeycomb account will trigger feature flags in LaunchDarkly.