Choosing a metric type
Overview
The topics in this category help you understand the different types of LaunchDarkly metric so you can choose the correct metric for an experiment or guarded rollout.
You can use any of the metric event types to create conversion metrics, which aggregate and analyze events when an end user takes an action based on a feature flag they encounter. You must use custom events to create numeric metrics, which measure and analyze numerical values against a baseline that you set.
You can use any metric types to create an A/B experiment or A/A test, or to use as a release guardrail in a guarded rollout or release policy. You can add certain conversion metrics to a funnel metric group for use in experiments, guarded rollouts, or release policies.
This table includes examples of different different metric types and their common randomization units, and shows which metrics can be used experiments, funnel metric groups, and guarded rollouts:
You should choose a metric type that correctly measures the effect of a change on your customers or codebase. If you are unsure of what metric type to use, begin by determining what kind event you are trying to measure. For additional examples of common metrics and how to configure them, read Example metrics.
When you create a metric, you must also decide how you want to handle its metric and unit analysis. To learn more, read Metric aggregation and analysis.
Related content
The following sections describe how to create each metric type: