For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
    • Manage flags
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
      • BigQuery native Experimentation
      • Databricks native Experimentation
      • Redshift native Experimentation
      • Snowflake native Experimentation
        • Data requirements
        • Setting up the Snowflake integration
        • Snowflake common questions
      • Warehouse health checks
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Prerequisites
  • Snowflake data requirements
  • Role permissions
  • IP addresses
  • Network policy
  • Step 1: Gather your Snowflake account information
  • Step 2: Configure the Snowflake Data Export integration
  • Step 3: Configure the Snowflake native Experimentation integration
  • Run the SQL script in Snowflake
  • Save the configuration in LaunchDarkly
  • Step 4: Create a metric data source
  • Step 5: Verify the connection
  • Next steps
Warehouse nativeSetting up external warehousesSnowflake native Experimentation

Setting up the Snowflake integration

Was this page helpful?
Previous

Snowflake common questions

Next
Built with
Contact us for help with configuring Snowflake native Experimentation

If you have both Data Export and Experimentation enabled for your LaunchDarkly account, you should have access to Snowflake native Experimentation. If you do not have access or need help getting started, contact your LaunchDarkly representative or start a Support ticket.

Snowflake native Experimentation works only with LaunchDarkly experiment data

You cannot run Snowflake native experiments on experiment data coming from third-party sources, or flag evaluation data from LaunchDarkly that was not generated as part of a LaunchDarkly experiment.

Overview

This topic explains how to set up the Snowflake native Experimentation integration.

Prerequisites

To configure the Snowflake integration, you must have the following prerequisites.

Snowflake data requirements

Before you begin, prepare your Snowflake data to meet the Snowflake data requirements for the integration.

Role permissions

The role permission requirements include:

  • You must have the ACCOUNTADMIN role in Snowflake
  • You must have a LaunchDarkly role of Owner or Admin, or a custom role that allows the following actions:
    • add and edit integrations
    • add destinations
    • add metric data sources

IP addresses

You must add to your Snowflake allow list the following outbound IP addresses:

For a full list of LaunchDarkly’s public IP addresses, read Public IP list.

Network policy

  • If you use network policies within your Snowflake account, you will need to create or update your policy to allow traffic from LaunchDarkly. To do this, you need your LaunchDarkly project key and environment key:
    1. Find, copy, and save your project key following these instructions.
    2. Find, copy, and save your environment key following these instructions.
    3. Combine the keys together, separated by two underscores. For example, if your project key is MobileApp and your environment key is production, your combined key is MobileApp__production.
    4. Replace <ProjKey__EnvKey> with your combined key in the code sample below, and add it to your Snowflake network policy:

Step 1: Gather your Snowflake account information

To begin, collect the following information about your Snowflake account:

  • The name of the Snowflake database containing your metrics data. LaunchDarkly will be granted read access to this database.
  • The name of the schema within your metrics database. You don’t need this if you want to grant access to all schemas within the database.

Step 2: Configure the Snowflake Data Export integration

You must be using the latest version of the Snowflake Data Export integration

If you were using an earlier version of Snowflake Data Export, you must update it to the version released in January 2025.

To begin, configure the latest Snowflake Data Export integration. The Snowflake Data Export integration provides LaunchDarkly experiment exposure data to Snowflake. This data is used with your metric events data stored in Snowflake to compute experiment results.

Follow the installation instructions at Snowflake Data Export to configure the Snowflake Data Export integration. You can also view a 6-minute instructional video about Snowflake Data Export Setup.

Step 3: Configure the Snowflake native Experimentation integration

Now, you will configure the Snowflake native Experimentation integration in LaunchDarkly. This integration is a second LaunchDarkly integration that looks similar to the Snowflake Data Export integration, but requires a separate setup process.

To set up the Snowflake native Experimentation integration:

  1. Navigate to the Integrations page.
  2. Search for and select Snowflake Native Experimentation.
  3. Click Add integration. The configuration panel appears.
  4. Enter an integration Name.
  5. Select the LaunchDarkly Project and environment for this integration. You cannot change this after you save the integration.

The Snowflake Native Experimentation configuration panel in LaunchDarkly.

The Snowflake Native Experimentation configuration panel in LaunchDarkly.
  1. Enter your Snowflake Metrics database name.
  2. (Optional) Enter your Snowflake Metrics schema name.
  3. LaunchDarkly generates a SQL script. Copy and save this script for use in the next step.

Keep the configuration screen open, as you will return to it in a later step.

Run the SQL script in Snowflake

Next, run the SQL script in Snowflake:

  1. In Snowflake, navigate to Projects / Worksheets.
  2. Click the + “Create SQL worksheet” button to create a new worksheet.
  3. Paste the generated script to the worksheet.
  4. Click the arrow to run the worksheet.

Save the configuration in LaunchDarkly

To finish the configuration in LaunchDarkly:

  1. Return to the LaunchDarkly configuration screen.
  2. Click Test connection and save.

Step 4: Create a metric data source

Now, you can set up your metric data source in LaunchDarkly by following the steps under Create data sources.

Step 5: Verify the connection

Finally, verify the connection. On the integration configuration page, check the “Connection status” indicator. A green Healthy status confirms LaunchDarkly can connect to Snowflake and has the correct permissions.

Next steps

Read the following topics to understand how to create an experiment using a Snowflake native metric and how to analyze the experiment results:

  • Creating experiments using warehouse native metrics
  • Analyzing experiments

The results page for an experiment using warehouse native metrics displays the date and time the results were last updated from Snowflake. The initial load of experiment results can take up to 60 minutes to appear, and further results updates appear within 15–30 minutes.