Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.
/ launch-dogly Public archive

πŸš€ πŸŒ‘ 🐢 Create Datadog events on Launch Darkly feature flag events

License

Notifications You must be signed in to change notification settings

meetuparchive/launch-dogly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Launch Dogly Build Status Coverage Status

πŸš€ πŸŒ‘ 🐢 A Launch Darkly webhook handler that records changes as datadog events

πŸ€” about

Your observability and monitoring strategy should include visibility into notable events in your system in order to understand system triggers. In a continuously deployed system, production testing often happens at runtime via feature flag toggles.

This lambda is triggered on updates to Launch Darkly feature flags and records them as events in Data Dog which makes them available to overlay your system and application metrics.

πŸ‘©β€πŸ­ development

This is a rustlang application. Go grab yourself a copy of rustup.

πŸš€ deployment

This is a rust application deployed using ⚑ serverless ⚑.

You'll need the following

Enable web hook secret signing to verify requests come from Launch Darkly.

To reduce the the number of events you recieve you can be selective of which resources an actions trigger your webhook. Below is a policy that restrictions actions to flags and a subset of target actions.

[
  {
    "resources": [
      "proj/*:env/*:flag/*"
    ],
    "actions": [
      "createFlag",
      "updateOn",
      "updateRules",
      "updateTargets",
      "updateOffVariation",
      "updateFlagVariations",
      "deleteFlag",
      "updateName"
    ],
    "effect": "allow"
  }
]

Deployments expect an DD_API_KEY and LD_SECRET environment variable.

🀸 Usage

In Datadog's event stream you can search for sources:launch-darkly. The following metric tags are extracted from LaunchDarkly events

Tag Description
kind The kind of target entity Launch Darkly was triggered for, currently only "flag"
name The name of the flag
action Action that triggered the change

About

πŸš€ πŸŒ‘ 🐢 Create Datadog events on Launch Darkly feature flag events

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages