Linking LaunchDarkly as a source
This source is currently in alpha. The interface and available tables may change.
Enter your LaunchDarkly access token to pull your projects, environments, feature flags, metrics, members, and audit log into the PostHog data warehouse.
Adding a data source
- Go to the sources tab of the data pipeline section in PostHog.
- Click + New source and then click Link next to LaunchDarkly.
- Create a personal or service access token in your LaunchDarkly account settings. A token with the Reader role grants read access to every resource this source syncs. Copy the Access token.
- Back in PostHog, enter the access token and click Next.
- Select the tables you want to sync, set the sync method and frequency, then click Import.
Once the syncs are complete, you can start using LaunchDarkly data in PostHog.
Available tables
| Table | Description | Sync method |
|---|---|---|
projects | Projects in your LaunchDarkly account | Full refresh |
members | Account members | Full refresh |
auditlog | Audit log entries | Full refresh |
environments | Environments, fetched per project | Full refresh |
metrics | Metrics, fetched per project | Full refresh |
flags | Feature flags, fetched per project | Full refresh |
Incremental tables sync only new or updated records on each run. Full refresh tables reload all data on each sync.
Sync limitations
LaunchDarkly's API exposes no server-side timestamp filter on these resources, so every table is full refresh only and reloads all records on each sync.
Configuration
| Option | Type | Required |
|---|---|---|
Access token | password | Yes |
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
projects | A LaunchDarkly project — a container for environments, feature flags, and metrics. | Full refresh | — | — |
members | A member of the LaunchDarkly account. | Full refresh | — | — |
auditlog | An entry in the LaunchDarkly audit log recording a change made in the account. | Full refresh | — | — |
environments | An environment within a LaunchDarkly project (e.g. production, staging). | Full refresh | — | — |
metrics | A metric used to measure the impact of feature flags and experiments. | Full refresh | — | — |
flags | A LaunchDarkly feature flag and its targeting configuration across environments. | Full refresh | — | — |