> ## Documentation Index
> Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Monitor AI Configs

> This topic explains how to monitor the performance of your AI Configs.

> For the complete documentation index, see [llms.txt](/llms.txt). For the full documentation snapshot, see [llms-full.txt](/llms-full.txt).

## Overview

This topic explains how to monitor the performance of your AI Configs. Performance metrics for AI Configs are available in the LaunchDarkly user interface if you [track AI metrics in your SDK](/sdk/features/ai-metrics).

Monitoring metrics collected from your SDK apply to both completion mode and agent mode. You can attach judges to completion-mode AI Config variations in the LaunchDarkly UI. For other variations, invoke a judge programmatically using the AI SDK. To learn more, read [Online evaluations in AI Configs](/home/ai-configs/online-evaluations).

## Collect data for AI Config variations

Data appears on the **Monitoring** tab for an AI Config when you record metrics from your AI model generation. For each AI SDK, the function to record metrics takes a completion from your AI model generation, so you can make the call to your AI model provider and record metrics from model generation in one step. You can record duration, token usage, generation success and error, time to first token, output satisfaction, and more.

To learn how, read [Tracking AI metrics](/sdk/features/ai-metrics). For a detailed example, read [Step 4 in the Quickstart for AI Configs](/home/ai-configs/quickstart#step-4-in-your-app-customize-the-ai-config-and-track-metrics).

<Tip title="You can also monitor variation rollouts">
  You can use a [guarded rollout](/home/releases/guarded-rollouts) when you are releasing new variations to your customers. The **Monitoring** tab shows a guarded rollout's progress and SDK-recorded metric results. LaunchDarkly highlights regressions and pauses a guarded rollout automatically if needed.
</Tip>

## Monitor an AI Config

To monitor the performance of an AI Config:

1. Navigate to the detail page for the AI Config and select the **Monitoring** tab.
2. At the top of the tab, use the controls to specify the monitoring data you want to view:
   * Use the **Environment** dropdown to select the [environment](/home/getting-started/vocabulary#environment) you want to monitor. Performance metrics are specific to each environment.
   * Select a date range.
   * Use the **Charts** dropdown to select which set of charts to view.
3. Review charts of the available monitoring data. The data in each chart applies to the selected environment and is broken out by variation:
   * The **Tokens** charts show average input and output tokens used by the AI Config, by variation.
   * The **Satisfaction** chart shows the percentage of "thumbs up" ratings provided by end users who have encountered the AI Config in this environment, by variation.
   * The **Generations** chart shows the average number of successful generations completed using the AI Config in this environment, by variation.
   * The **Time to generate** chart shows the average duration per generation. This represents the total duration of calls to your LLM provider divided by the number of total generations, by variation.
   * The **Error rate** chart shows the percentage of errors out of the total number of generations attempted, by variation.
   * The **Time to first token** chart shows the mean time it takes to generate the initial token.
   * **Costs** chart shows the sum of the input token cost and output tokens cost used by the AI Config, by variation.
4. Review the table of available monitoring data. The table includes the data displayed in the charts as well as additional data, such as both average and total input and output tokens.
5. (Optional) In the table, select the variations or versions for which you want to view data. The charts update based on your selection.
6. (Optional) Click **Export data as CSV** to download a CSV file for further analysis.

For data to appear on the **Monitoring** tab, you must record the metrics in your application using a `track` call from a LaunchDarkly AI SDK. To learn more, read [Tracking AI metrics](/sdk/features/ai-metrics).

The data on the **Monitoring** tab updates approximately every minute. For each metric, results are broken out by AI Config variation. Metrics with no results display "No data." If no data exists for a particular variation, that variation is not included in the total shown at the top of the metric card.

Here is a partial image of the **Monitoring** tab:

<Frame caption="The &#x22;Monitoring&#x22; tab for an AI Config.">
  ![The Monitoring tab for an AI Config.](https://files.buildwithfern.com/https://launchdarkly.docs.buildwithfern.com/docs/6d2506220f2cd3c1b5017cea2cc76571f2f79b96d852b027875dc9df13a0d77c/assets/images/__LD_UI_no_test/ai-config-targeting-monitoring.png)
</Frame>

## Monitoring versus trends explorer

The **Monitoring** tab displays performance metrics for a single AI Config in a selected environment. It is designed for detailed analysis of variation performance, guarded rollout progress, and version-level comparisons within that AI Config.

The **Trends explorer** tab aggregates performance data across multiple AI Configs, variations, models, providers, and targeting rules in a single view. Trends explorer offers:

* Time series charts that span multiple AI Configs, variations, models, providers, and targeting rules
* Quick filtering to focus on specific variations, models, or rules
* Version change annotations to correlate updates with performance trends
* Quick stats summarizing costs, generations, token usage, and satisfaction across your system
* CSV export of aggregated performance data for multiple AI Configs

Use **Monitoring** to diagnose and optimize a specific AI Config. Use **Trends explorer** to identify trends across all your AI Configs.

To learn more, read [View AI Config trends explorer](/home/ai-configs/trends).
