Linking LaunchDarkly as a source

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Contents

Enter your LaunchDarkly access token to pull your projects, environments, feature flags, metrics, members, teams, metric groups, code references, and audit log into the PostHog data warehouse.

Adding a data source

  1. Go to the sources tab of the data pipeline section in PostHog.
  2. Click + New source and then click Link next to LaunchDarkly.
  3. 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.
  4. Back in PostHog, enter the access token and click Next.
  5. 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

TableDescriptionSync method
projectsProjects in your LaunchDarkly accountFull refresh
membersAccount membersFull refresh
auditlogAudit log entriesFull refresh
environmentsEnvironments, fetched per projectFull refresh
metricsMetrics, fetched per projectFull refresh
flagsFeature flags, fetched per projectFull refresh
metric_groupsMetric groups, fetched per projectFull refresh
teamsTeams in your LaunchDarkly accountFull refresh
team_maintainersTeam maintainers, fetched per teamFull refresh
team_rolesTeam roles, fetched per teamFull refresh
code_ref_repositoriesCode reference repositoriesFull refresh
code_ref_statisticsCode reference statistics, fetched per projectFull 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

OptionTypeRequired
Access tokenpasswordYes

Supported tables

TableDescriptionSync methodIncremental fieldPrimary 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——
segments

A segment of contexts that flag targeting rules can include or exclude, per environment.

Full refresh——
flag_statuses

The status of each feature flag in an environment, with the time it was last requested.

Full refresh——
experiments

A LaunchDarkly experiment, including its current, draft, and previous iterations.

Full refresh——
holdouts

A holdout that excludes a percentage of traffic from experiments to measure their overall effect.

Full refresh——
metric_groups

A metric group: an ordered set of metrics that experiments and guarded rollouts measure together.

Full refresh——
teams

A team: a group of account members that share custom roles and maintain resources together.

Full refresh——
team_maintainers

An account member assigned as a maintainer of a team.

Full refresh——
team_roles

A custom role assigned to a team.

Full refresh——
code_ref_repositories

A source code repository connected to LaunchDarkly code references.

Full refresh——
code_ref_statistics

The number of code references to a flag in one repository, on the repository's default branch.

Full refresh——

Still have questions?

Was this page useful?