> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Warehouse native metrics

> This topic explains how to configure a warehouse native metric for use in LaunchDarkly experiments. Warehouse native metrics measure events stored in an external warehouse you specify.

**Developer**

**Federal docs**

> [!CAUTION]
>
> **Warehouse native metrics are not available in federal environments**
>
> To learn more, read [LaunchDarkly in federal environments](https://launchdarkly.com/docs/home/infrastructure/federal).

**EU docs**

This topic explains how to configure a warehouse native metric for use in an experiment. Warehouse native metrics are metrics that measure events stored in an external warehouse, such as Snowflake.

## Prerequisites

Before you can create a warehouse native metric, you must configure a [warehouse native Experimentation integration](https://launchdarkly.com/docs/home/warehouse-native/warehouses) and create at least one metric data source for the integration. To learn more, read [Metric data sources](https://launchdarkly.com/docs/home/warehouse-native/metric-data-sources.md). You can optionally create a new data source when you create a new metric.

### Warehouse native metric requirements

Warehouse native metrics must be [custom metrics](https://launchdarkly.com/docs/home/metrics/custom-metrics) or [ratio metric](https://launchdarkly.com/docs/home/metrics/ratio-metrics.md).

Experiments that use warehouse native metrics cannot use:

* [Clicked or tapped metrics](https://launchdarkly.com/docs/home/metrics/click.md)
* [Page viewed metrics](https://launchdarkly.com/docs/home/metrics/pageview.md)
* [Metric groups](https://launchdarkly.com/docs/home/metrics/metric-groups)
* LaunchDarkly hosted metrics that measure events from LaunchDarkly SDKs

## Create a warehouse native metric

To create a warehouse native metric:

1. Open the **Data** section and navigate to the **Metrics** list.
2. Click **Create metric**. The "Create metric" dialog appears.
3. Select either **Simple** or **Ratio** as the metric structure.
4. Select a configured warehouse integration from the **Metric type** menu.
5. Select an existing data source from **Metric data source**, or click **Create metric data source** to create a new one.

![Selecting a data source for a warehouse native metric.](https://mintcdn.com/launchdarkly/7dOLLfhGme_BglBp/images/__LD_UI_no_test/warehouse-metric-data-source.png?fit=max\&auto=format\&n=7dOLLfhGme_BglBp\&q=85\&s=5c32682abef01030d58d28f00c3c5da4)

Selecting a data source for a warehouse native metric.

6. (Optional) Enter a new or existing **Event key** to include only events with that key in the metric. If you leave the **Event key** blank, the metric includes every event from the data source.
7. (Optional) Use the **Filter by event properties** field to create a filter query to choose the specific events you want to select for this metric. This field is available only for metrics created from Snowflake data sources. To learn more, read [Filtering custom metric events](https://launchdarkly.com/docs/home/metrics/event-filters.md).
8. Finish creating the metric by continuing the procedure as described in [custom conversion binary](https://launchdarkly.com/docs/home/metrics/custom.md), [custom conversion count](https://launchdarkly.com/docs/home/metrics/custom-count.md), [custom numeric](https://launchdarkly.com/docs/home/metrics/custom-numeric.md), or [ratio metric](https://launchdarkly.com/docs/home/metrics/ratio-metrics.md).

You can now [create an experiment](https://launchdarkly.com/docs/home/warehouse-native/creating.md) by selecting this metric.
