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
      • Custom flags
      • Release flags
      • Kill switch flags
      • Experiment flags
      • AI prompt flags
      • AI model flags
      • Migration flags
        • Creating migration flags
        • Targeting with migration flags
        • Migration flag metrics
    • 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
    • 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
  • Consistency rate
  • Latency
  • Error rate
  • Setting up metrics in the SDK
Feature flagsFlag templatesMigration flags

Migration flag metrics

Was this page helpful?
Previous

Manage flags

Next
Built with

Overview

Three metrics are available for migration flags: consistency rate, p99 latency, and error rate. You can use these metrics to track the progress of a migration flag. LaunchDarkly reports metrics at the flag and cohort level to provide fine-grained insight into your migration. Flag level metrics can include metrics not reflected in current cohorts. For example, you may see metrics from recently deleted cohorts, evaluations from while the flag was turned off, or if the prerequisite check failed.

Your SDK automatically tracks these metrics for you, with two exceptions:

  • Migration metrics are not tracked if you disable them in your SDK.
  • Migration metrics are not tracked in SDKs that do not support events, such as the Akamai SDK.

All migration metrics are updated hourly. They are unrelated to experimentation metrics.

Three charts, each displaying a healthy metric.

Three charts, each displaying a healthy metric.

Consistency rate

The consistency rate metric shows how often two sets of compared data match each other. It is measured as a representative rate of total consistent invocations, where both invocations return the same results, against total number of invocations.

The consistency rate metric is not available for two-stage migrations, because it is only available when new and old systems can be run at the same time.

You must define what “same results” means for your systems. When you configure your SDK, you provide a validation function that compares the results of the old system and the new system and returns true if the systems are returning the same data. This validation function runs each time you read data while a cohort is in a stage that reads from both new and old systems, for example, the live stage.

In the LaunchDarkly user interface (UI), consistency rates lower than 99% display in red.

Changing the sampling ratio

If you’d like to run the consistency function less frequently, you can modify the consistency check interval in your flag settings for a specific environment. It defaults to 1, which means it will run for every invocation where there are old and new systems running simultaneously.

Latency

You can configure your SDK to return custom latency amounts, which are displayed in the UI as a p99 value. This number relies on the sampling ratio.

In the LaunchDarkly UI, unhealthy latency rates display in red. An unhealthy latency rate is ten percent or greater. Neutral rates of between zero and ten percent display in gray. Latency rates of less than ten percent are healthy, and display in green.

Error rate

The SDK you use reports errors as a rate per system. You can configure your SDK to log errors. This number relies on the sampling ratio.

In the LaunchDarkly UI, unhealthy error rates display in red. An unhealthy error rate is ten percent or greater. Neutral rates of between zero and ten percent display in gray. Latency rates of less than ten percent are healthy, and display in green.

Setting up metrics in the SDK

You can configure migration flag metrics in your SDK. To learn more, read Migration configuration.