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
      • Components of a metric
      • Choosing a metric type
      • Creating metrics from traces
      • Managing metrics
    • 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
  • Overview
  • View metric details
  • Details tab
  • Impact tab
  • Activity tab
  • Sidebar information
  • Edit metrics
  • Editing filters
  • Archive metrics
  • Delete metrics
Metrics and eventsCreating metrics

Managing metrics

Was this page helpful?
Previous

Metric groups

Next
Built with

Overview

This topic explains how to view, edit, archive, and delete existing metrics.

View metric details

After you create a metric, you can view its configuration, connections, and recent activity from the metric details page.

To open a metric:

  1. Open the Data section and navigate to the Metrics list.
  2. Click the name of the metric you want to view.

The metric details page includes three tabs and a right-hand sidebar that summarize all available information about the metric.

Details tab

The Details tab displays configuration fields such as event key, metric type, definition, and success criteria. It also shows the Connections section, which lists any experiments, guarded rollouts, metric groups, multi-armed bandits, or release policies that use the metric.

To learn more about metric definition options, read Metric components.

Impact tab

The Impact tab lists the experiments that include the metric and shows current effect sizes, variation performance, and experiment status.

Activity tab

The Activity tab shows the most recent events associated with the metric, including timestamp, context key, and value. This helps you verify that your SDK instrumentation is working correctly. To learn more, read Events.

Sidebar information

The sidebar displays additional metadata about the metric, including:

  • Description
  • Maintainer
  • Tags
  • Sources
  • Metric key
Event keys and metric keys are different

Sending custom events to LaunchDarkly requires a unique event key. You can set the event key to anything you want. The metric key is generated automatically and is used only to identify the metric in API calls. To learn more, read Events.

A metric’s page with details, impact, and activity.

The metric details page with tabs for Details, Impact, and Activity.

To analyze a metric’s results, read Metric components. To view or filter events associated with a metric, read Events.

Edit metrics

You can edit all of an existing metric’s settings except for its metric kind and metric key.

To edit a metric:

  1. Open the Data section and navigate to the Metrics list.
  2. Click the name of the metric you want to edit. The metric details screen opens.
  3. Click the pencil icon in the right sidebar next to the field you want to edit. The “Edit metric” dialog appears.
  4. Make the edits you want and click Save metric.

You can also use the REST API: Update metric

Each time you save changes to a metric, LaunchDarkly records a new version of the metric along with the details of the changes you made. You can view the version history of a metric from its details page.

Changes you make to a metric’s name, description, or tags are immediately reflected in any experiments or guarded rollouts that use the metric. However, if you change a metric’s aggregation method or analysis method, running experiments or guarded rollouts that use the metric continue to use same metric aggregation or analysis method that was configured when the experiment or rollout started.

Editing filters

After you create a metric, you can optionally configure metric event filters to control which events are included in its analysis. This lets you focus the metric on specific context attributes or event properties, such as events where the variationKey is treatment or the country context attribute is CA.

To learn more, read Filtering custom metric events.

Archive metrics

Archiving a metric removes it from the metrics list, dashboards, and metric selectors, while preserving its definition and historical results. Archiving helps reduce clutter and maintain a clean workspace during guarded rollouts and experiments.

Archiving a metric creates a new version. This version reflects the archived state and preserves earlier versions for accurate experiment analysis and audit history. You can view a metric’s current and previous versions on its details page, with each version reflecting how the metric was configured when it was used.

You cannot archive a metric if you are using it in an active experiment, guarded rollout, metric group, or release policy. If the metric is in use, LaunchDarkly disables the archive option and displays a list of the connections.

To archive a metric:

  1. Open the Data section and navigate to the Metrics list.
  2. Next to the name of the metric you want to archive, click the three-dot overflow menu.
  3. Click Archive metric. A confirmation dialog appears that lists the number of experiments, guarded rollouts, and metric groups the metric is connected to.
  4. Click Archive.

By default, LaunchDarkly hides archived metrics from the metrics list, experiment setup screens, and metric selection menus. To view them, turn on the Show archived filter in the metrics list.

You can restore an archived metric at any time. When you restore a metric, it returns to active use and reappears in the metrics list, metric selectors, and dashboards.

To restore an archived metric:

  1. Open the Data section and navigate to the Metrics list.
  2. Turn on the Show archived filter.
  3. Next to the name of the metric you want to restore, click the three-dot overflow menu.
  4. Click Restore. A confirmation dialog appears.
  5. Click Restore.

You can also use the REST API: Update metric. To archive or restore a metric, replace the archived field with true or false.

LaunchDarkly automatically sets the archivedAt timestamp when you archive a metric and clears it when you restore it. You cannot set or modify this field manually.

To archive or restore a metric, your role must include the updateArchived action for the metric resource.

Delete metrics

Deleting a metric is irreversible. You cannot recover a metric after you delete it.

LaunchDarkly recommends archiving metrics instead of deleting them. Archiving preserves the metric’s historical data and audit trail, and removes it from selection menus and dashboards by default.

You can only delete a metric if:

  • It is already archived
  • It has never been used in any experiments or guarded releases

To delete a metric:

  1. Open the Data section and navigate to the Metrics list.
  2. Turn on the Show archived filter.
  3. Click the name of the archived metric you want to delete. The metric details screen opens.
  4. If the metric has never been used in an experiment or guarded release, click Delete metric. A confirmation dialog appears.
  5. Click Delete metric.

You can also use the REST API: Delete metric