Managing metrics
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:
- Navigate to the Metrics list.
- 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.

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:
- Navigate to the Metrics list.
- Click the name of the metric you want to edit. The metric details screen opens.
- Click the pencil icon in the right sidebar next to the field you want to edit. The “Edit metric” dialog appears.
- 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:
- Navigate to the Metrics list.
- Next to the name of the metric you want to archive, click the three-dot overflow menu.
- Click Archive metric. A confirmation dialog appears that lists the number of experiments, guarded rollouts, and metric groups the metric is connected to.
- 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:
- Navigate to the Metrics list.
- Turn on the Show archived filter.
- Next to the name of the metric you want to restore, click the three-dot overflow menu.
- Click Restore. A confirmation dialog appears.
- 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:
- Navigate to the Metrics list.
- Turn on the Show archived filter.
- Click the name of the archived metric you want to delete. The metric details screen opens.
- If the metric has never been used in an experiment or guarded release, click Delete metric. A confirmation dialog appears.
- Click Delete metric.
You can also use the REST API: Delete metric