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
    • 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
  • Add an alert
  • Constant alert configuration
  • Anomaly alert configuration
  • Configure an alert
  • Alert notifications
  • Member notifications
  • Slack notifications
  • Webhook notifications
  • View and manage alerts
  • View an alert
  • Enable or disable an alert
  • Delete an alert
Observability

Alerts

Was this page helpful?
Previous

Dashboards

Next
Built with

Overview

This topic explains how to set alerts for LaunchDarkly’s observability features. Alerts are a way to keep members of your organization aware of what is happening in your application. You can set alerts based on sessions, errors, logs, or traces, or when important conditions are met.

LaunchDarkly supports two alert types:

  • Constant alerts trigger when a metric crosses a value threshold you define (for example, error count above 100).
  • Anomaly alerts trigger when LaunchDarkly detects unusual behavior or patterns in your observability data.

Add an alert

To add a new alert based on your LaunchDarkly observability data:

  1. Open the Telemetry section and navigate to the Alerts list.
  2. Click Create new alert.
  3. Enter an Alert title.
  4. Select a Source to query. You can add alerts based on data from any of the following:
    • logs
    • traces
    • sessions
    • errors
    • events
    • observability metrics
    Alert events come from session replay

    In the alert configuration, “events” refer to track, click, and navigate events that occur in a session replay.

  5. (Optional) Enter Filters to filter out data points from your selected source before aggregating. For example, if you only want to generate alerts from data in the production environment, set the environment filter. To learn more about the filter syntax, read Search specification.
  6. (Optional) Select a Function from the dropdown to determine how data points are aggregated. If you choose a function that requires a parameter, such as “Min,” select the attribute to use as well. Functions are not available for all sources.
  7. (Optional) Enable the Group by toggle to group your query results into separate series. For example, you might group your logs by level. Grouping is not available for all sources.
  8. Select the Alert threshold type: Constant (threshold-based) or Anomaly (detects unusual patterns in your data).
  9. Configure the alert conditions. To learn more, read Constant alert configuration or Anomaly alert configuration.
  10. (Optional) Create a message template for the alert using Markdown and a set of variables.
  11. (Optional) Click + Add notification. Select the destinations for notifications when the threshold is met or an anomaly is detected.
  12. Click Save.

Constant alert configuration

Here is an example of the configuration panel for an alert with a constant threshold:

  • Select whether the Alert conditions are met above or below your threshold.
  • Set the Alert threshold to a number of your choice.
  • Set the Alert window. This is the time range for which data points are searched and aggregated. Shorter windows can help if you need to be alerted quickly about an issue, while longer windows can help reduce noise by aggregating across a longer time range.
  • Set the Cooldown period. After the initial notification, additional notifications will not be sent for this amount of time. If the alert condition still exists after the cooldown, another notification will be sent.
  • (Optional) Set the Evaluation delay (min) to delay evaluating the alert until some period of time after the alert window closes. Using an evaluation delay helps you to capture relevant alert data that may arrive late from the configured event source. The configuration panel shows a caution icon when data from the selected source has been received with regular delays. Hover on the icon to view a percentile breakdown of delay durations.

The configuration panel for an alert, showing ingest delay.

The configuration panel for a constant alert, showing ingest delay.

Anomaly alert configuration

Here is an example of the configuration panel for an alert with an anomaly threshold:

  • Select whether the Alert conditions are met above, below, or outside your threshold.
  • Set the Alert threshold to the confidence level of the anomaly prediction (a higher confidence is more likely to be an anomaly).
  • Set the Alert window. This is the time range for which data points are searched and aggregated. Shorter windows can help if you need to be alerted quickly about an issue, while longer windows can help reduce noise by aggregating across a longer time range.
  • Set the Cooldown period. After the initial notification, additional notifications will not be sent for this amount of time. If the alert condition still exists after the cooldown, another notification will be sent.
  • (Optional) Set the Evaluation delay (min) to delay evaluating the alert until some period of time after the alert window closes. Using an evaluation delay helps you to capture relevant alert data that may arrive late from the configured event source. The configuration panel shows a caution icon when data from the selected source has been received with regular delays. Hover on the icon to view a percentile breakdown of delay durations.

The configuration panel for an alert.

The configuration panel for an anomaly alert.

Configure an alert

To change the configuration for an alert:

  1. Navigate to Alerts in the left navigation. A list of all alerts appears.
  2. Click Configure on the panel for that alert.
  3. The “Edit” page appears. Update the source, threshold, or notification.
  4. Click Save.

Alert notifications

Alert notifications can be added with the + Add notification button when configuring an alert.

Member notifications

Member notifications are sent via email to each member added to the alert. If you have the LaunchDarkly Slack app, they are also sent through Slack.

Slack notifications

You can send alert notifications to Slack channels. To use Slack alerts:

  1. Install the LaunchDarkly Slack app.
  2. Sign into LaunchDarkly with the /launchdarkly account Slack command.

Webhook notifications

You can add one or more URLs for receiving webhook notifications. When an alert is triggered, POST requests will be sent to these URLs with the following format:

1{
2 "Event": "LOGS_ALERT",
3 "AlertName": "too many errors!",
4 "Query": "level=error",
5 "Count": 10,
6 "StartDate": "2025-10-10T17:38:23.439580358Z",
7 "EndDate": "2025-10-10T18:08:23.439580358Z",
8 "Function": "Count",
9 "FunctionColumn": "",
10 "Threshold": 1,
11 "BelowThreshold": false,
12 "LogsURL": "logs?query=&startDate=2025-10-10T17%3A38%3A23Z&endDate=2025-10-10T18%3A08%3A23Z"
13}

View and manage alerts

You can view and manage alerts from the Alerts list.

View an alert

To view a particular alert:

  1. Navigate to Alerts in the left navigation. A list of all alerts appears.
  2. Click the title of the alert you want to view.
  3. The alert details appear, including the number of active alerts and history of alerts for this configuration.

From here, you can select to pause the alert or change its configuration.

Enable or disable an alert

To enable or disable a particular alert, click the toggle next to any of the alerts in the Alerts list. Only enabled alerts send notifications.

To pause an alert without disabling it, click the title of an alert on the Alerts list to view its details page. Then click Pause alert.

Delete an alert

To delete an alert:

  1. Find the alert you want to delete in the Alerts list.
  2. Click Configure on the panel for that alert. The Edit page appears.
  3. Click Delete alert.