Skip to content

Commit 5f9c04a

Browse files
committed
updated docs
1 parent 061d3c1 commit 5f9c04a

4 files changed

Lines changed: 155 additions & 3 deletions

File tree

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
LaunchDarkly Integration with Robusta
2+
=====================================
3+
4+
.. note::
5+
This feature is available with the Robusta SaaS platform and self-hosted commercial plans. It is not available in the open-source version.
6+
7+
This guide explains how to route LaunchDarkly feature flag changes to Robusta's UI via a webhook.
8+
9+
Requirements
10+
------------
11+
12+
- Robusta must already be deployed and running in your environment.
13+
- You have admin access to the Robusta UI (to create API keys and view your ``account_id``).
14+
- You have admin access to LaunchDarkly (to create webhook integrations).
15+
16+
Integration Steps
17+
-----------------
18+
19+
We will configure:
20+
21+
1. A Robusta API key and account ID.
22+
2. A LaunchDarkly **Webhook Integration** pointing to Robusta.
23+
3. Configure the webhook to send feature flag change events.
24+
25+
Step 1: Get Account ID and API Key
26+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27+
28+
Obtain your Robusta ``account_id`` and create an API key:
29+
30+
1. In the Robusta UI, navigate to **Settings → API Keys**.
31+
2. Click **New API Key**.
32+
3. Name the key **LaunchDarkly**, grant it **Read/Write** access to alerts, and click **Generate API Key**.
33+
4. Copy and securely store the generated API key.
34+
5. In **Settings → Workspace**, copy your **account_id**.
35+
36+
Step 2: Create a Webhook Integration in LaunchDarkly
37+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38+
39+
In LaunchDarkly:
40+
41+
1. Go to **Settings → Integrations → Webhook**.
42+
2. Click the **Add integration** button.
43+
3. Configure:
44+
45+
- **Name**: ``Robusta``
46+
- **URL**: ``https://api.robusta.dev/integrations/generic/launchdarkly?api_key=YOUR_API_KEY_HERE&account_id=YOUR_ACCOUNT_ID_HERE``
47+
- Replace ``YOUR_API_KEY_HERE`` with the API key from Step 1.
48+
- Replace ``YOUR_ACCOUNT_ID_HERE`` with your account ID from Step 1.
49+
50+
4. **Statement**: Leave as default or customize as needed.
51+
5. **Resource type**: Select **FLAG**.
52+
6. **Select flags**: Choose the specific flags you want to monitor, or select all.
53+
7. **Project and environments**: Select the projects and environments you want to track.
54+
8. Save the integration.
55+
56+
Alternative: Using Headers Instead of URL Parameters
57+
--------------------------------------------------
58+
59+
If you're using a third-party service that can forward requests, you can alternatively configure the webhook to use headers instead of URL parameters:
60+
61+
- **URL**: ``https://api.robusta.dev/integrations/generic/launchdarkly``
62+
- **Headers**:
63+
- ``account-id``: Your Robusta account ID
64+
- ``api_key``: Your Robusta API key
65+
66+
What Gets Tracked
67+
-----------------
68+
69+
The integration automatically tracks:
70+
71+
- **Feature flag changes**: When flags are turned on/off, created, or modified
72+
- **Environment changes**: Changes to flag configurations in specific environments
73+
- **Member actions**: Who made the changes and when
74+
- **Configuration diffs**: Before and after states of flag configurations
75+
- **Approval workflows**: Approval requests and status changes
76+
77+
Alert Information
78+
-----------------
79+
80+
Each LaunchDarkly change creates a Robusta alert with:
81+
82+
- **Title**: Descriptive title showing who made the change and what flag was affected
83+
- **Description**: Detailed information about the change, including member details
84+
- **Labels**: Flag key, environment, action type, and source information
85+
- **Evidence**:
86+
- Configuration diff showing before/after states
87+
- Markdown summary with flag details, project, environment, and reason
88+
- **Fingerprint**: Unique identifier for change aggregation
89+
90+
Validation
91+
----------
92+
93+
1. Make a test change to a feature flag in LaunchDarkly (turn it on/off, modify targeting, etc.).
94+
2. In Robusta's UI, verify the alert appears with:
95+
- Correct flag name and environment
96+
- Member information (who made the change)
97+
- Configuration diff showing the change
98+
- Proper labels and annotations
99+
100+
Troubleshooting
101+
---------------
102+
103+
- **No alerts appearing**: Verify the webhook URL is correct and the API key has proper permissions.
104+
- **Missing member information**: Ensure the LaunchDarkly webhook payload includes member details.
105+
- **Wrong environment**: Check that the correct projects and environments are selected in the LaunchDarkly webhook configuration.
106+
- **Missing configuration diffs**: Ensure the webhook is configured to send both ``previousVersion`` and ``currentVersion`` data.
107+
108+
For additional support, check the Robusta logs for any LaunchDarkly webhook processing errors.
109+
110+
Holmes Configuration
111+
-------------------
112+
113+
To enable Holmes to pull LaunchDarkly changes into the AI assistant, add the following configuration to your ``generated_values.yaml`` file and upgrade the Robusta Helm chart:
114+
115+
.. code-block:: yaml
116+
117+
holmes:
118+
additionalEnvVars:
119+
- name: PULL_EXTERNAL_FINDINGS
120+
value: "true"
121+
122+
After updating the configuration:
123+
124+
1. Save the ``generated_values.yaml`` file.
125+
2. Run: ``helm upgrade robusta robusta/robusta -f generated_values.yaml``
126+
3. Restart the Holmes pod to pick up the new environment variable.
127+
128+
This enables Holmes to access and analyze LaunchDarkly feature flag changes, allowing you to ask questions like:
129+
- "What feature flags were changed recently?"
130+
- "Who modified the authentication flag?"
131+
- "Show me all flag changes in the production environment."

docs/configuration/exporting/robusta-pro-features.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ Send alerts to Robusta from any monitoring system using HTTP webhooks.
2222
:doc:`Custom Webhooks <custom-webhooks>`
2323
Send alerts from any system that supports HTTP webhooks, including custom monitoring solutions.
2424

25-
:doc:`Nagios Integration <../alertmanager-integration/nagios>`
26-
Forward alerts from Nagios to Robusta for enrichment and automation.
25+
:doc:`Datadog Integration <../alertmanager-integration/datadog>`
26+
Forward alerts from Datadog to Robusta via webhooks.
27+
28+
:doc:`New Relic Integration <../alertmanager-integration/newrelic>`
29+
Forward alerts from New Relic to Robusta via webhooks.
30+
31+
:doc:`LaunchDarkly Integration <../alertmanager-integration/launchdarkly>`
32+
Forward feature flag changes from LaunchDarkly to Robusta via webhooks.
2733

2834
:doc:`SolarWinds Integration <../alertmanager-integration/solarwinds>`
2935
Configure SolarWinds to send alert webhooks directly to Robusta.
36+
37+
:doc:`Nagios Integration <../alertmanager-integration/nagios>`
38+
Forward alerts from Nagios to Robusta for enrichment and automation.
3039

3140
Data Export and Reporting APIs
3241
-------------------------------

docs/configuration/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,11 @@ Connect your monitoring system to Robusta, to enrich alerts and apply automation
5252

5353
Forward PagerDuty incidents and alerts by webhook
5454

55+
.. grid-item-card:: :octicon:`bell;1em;` LaunchDarkly
56+
:class-card: sd-bg-light sd-bg-text-light
57+
:link: alertmanager-integration/launchdarkly
58+
:link-type: doc
59+
60+
Forward LaunchDarkly changes by webhook
61+
..
5562
**Have alerts elsewhere?** Send alerts via the generic :doc:`HTTP webhook endpoint <exporting/custom-webhooks>`.

docs/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
Overview <configuration/index>
2727
Prometheus & AlertManager <configuration/alertmanager-integration/index>
28-
Nagios <configuration/alertmanager-integration/nagios>
28+
Datadog <configuration/alertmanager-integration/datadog>
29+
New Relic <configuration/alertmanager-integration/newrelic>
2930
SolarWinds <configuration/alertmanager-integration/solarwinds>
31+
PagerDuty <configuration/alertmanager-integration/pagerduty-alerting>
32+
Dynatrace <configuration/alertmanager-integration/dynatrace>
33+
LaunchDarkly <configuration/alertmanager-integration/launchdarkly>
34+
Nagios <configuration/alertmanager-integration/nagios>
3035
Custom Webhooks <configuration/exporting/custom-webhooks>
3136

3237
.. toctree::

0 commit comments

Comments
 (0)