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
      • Creating metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • 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
  • Prerequisites
  • Create metric groups
  • Edit metric groups
  • Delete metric groups
Metrics and eventsMetric groups

Creating metric groups

Was this page helpful?
Previous

Events

Next
Built with

This topic explains how to create and manage metric groups, which are reusable lists of metrics you can use to standardize metrics across multiple experiments or guarded rollouts.

Prerequisites

Before you create a metric group, you must create each metric that you want to include in the group. To learn how, read Metrics. The group may include one or more metrics that all share a common analysis unit, such as “user” or “account”.

Funnel metric groups cannot include custom numeric metrics

Funnel metric groups can include only custom conversion binary, custom conversion count, clicked or tapped, and page viewed metrics.

Create metric groups

To create a metric group:

  1. Open the Data section and navigate to the Metrics list.

  2. Click the Metric groups tab.

  3. Click Create metric group. The “Create metric group” dialog appears.

  4. Enter a unique, human-readable name for the group.

  5. (Optional) Enter a human-readable description of the metric group.

  6. Click either Standard or Funnel to select the type of metric group to create.

  7. Click the first “Select a metric” dropdown. LaunchDarkly displays the most used metrics in your project. You can choose to view:

    • Currently selected: metrics already added to the group
    • Most used: metrics most often added to groups, experiments, or releases
    • Recently added: recently created metrics
    • Release guardrails: metrics connected to either a release policy or guarded rollout
    • Autogenerated: metrics automatically created from AgentControl config, observability, or OpenTelemetry events
    • User-defined: all metrics not automatically generated by LaunchDarkly
    • All metrics: all available metrics

    Most used project metrics displayed after clicking "Select a metric" on the Create metric group page.

    Most used project metrics displayed after clicking "Select a metric" on the Create metric group page.
  8. Browse the list or use the Search metrics field to find a metric.

  9. Click a metric to add it to the metrics group.

  10. Click the second “Select a metric” dropdown to choose a second metric for the group. Metrics that do not have an analysis unit that overlaps with other metrics in the group become unavailable for later selections.

Only metrics with an overlapping analysis unit can be added.

Only metrics with an overlapping analysis unit can be added.
  1. (Optional) Click + Add another metric and repeat the previous step to add more metrics to your group.
  2. (Optional) For funnel metric groups, drag and drop the steps up or down to reorder them as needed.
  3. Click Create metric group.

The new metric group appears on the Metric groups list.

You can also use the REST API: Create metric group

Edit metric groups

Select a group from the Metric groups list to edit its name, description, maintainer, metrics, or, for funnel metric groups, step order.

Click the metric group’s name or description to update it. Click the pencil icon next to the metric group’s maintainer to assign a new maintainer.

To edit a metric group’s metrics or step order:

  1. Open the Data section and navigate to the Metrics list.
  2. Click the Metric groups tab.
  3. Click the name of the metric group you want to edit. The metric group details page opens.
  4. Click Edit metrics.
  5. (Optional) Click + Add another metric to add additional metrics to the group.
  6. (Optional) Click the x icon next to an individual metric to remove it. You must have at least two metrics in the metric group.
  7. (Optional) For funnel metric groups, click and hold the grab handle (dotted lines) to drag and drop the existing steps into your desired order.
  8. Click Save metric group.

You can also use the REST API: Patch metric group

Delete metric groups

To delete a metric group, navigate to the metric group’s details page and click Delete metric group. Deleting a metric group removes it from all of the environments within the project.

You cannot delete a metric group if it is connected to an experiment, guarded rollout, or release policy.

You can also use the REST API: Delete a metric group