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
        • Page viewed conversion metrics
        • Clicked or tapped conversion metrics
        • Custom metrics
          • Custom conversion count metrics
          • Custom conversion binary metrics
          • Custom numeric metrics
          • Filtering custom metric events
      • 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
  • Types of custom metrics
  • SDK compatibility
Metrics and eventsCreating metricsChoosing a metric type

Custom metrics

Was this page helpful?
Previous

Custom conversion count metrics

Next
Built with

Overview

This topic explains how to create custom metrics in LaunchDarkly. Custom metrics require that you instrument custom events in your application code using the LaunchDarkly SDK track() method.

When you create a custom metric in the LaunchDarkly user interface, you first select the event you have instrumented, and then LaunchDarkly displays data previews for the most recent events that it recorded. You can also filter the events you want to include a custom metric, based on context attributes or event properties.

Types of custom metrics

There are three types of custom metrics you can create:

  • Custom conversion count metrics track how many times an event occurs. You can use this metric to measure activities such as how many times a customer submits a form or how many errors occur during a checkout process.
  • Custom conversion binary metrics track how many contexts trigger an event. For example, this metric can measure how many customers submit a form, or how many customers encounter a specific error.
  • Custom numeric metrics track changes to the amount of something, such as dollars spent or the time it takes to complete a process. For example, this metric can measure page load times or the time it takes a server to respond to a request.

SDK compatibility

You can instrument custom metric events and create custom metrics using any LaunchDarkly SDK. Read Sending custom events to learn more.