---
title: "Alerts"
url: "/docs/proxy/lens/alerts"
canonical_url: "https://docs.litellm.ai/docs/proxy/lens/alerts"
type: "docs"
last_updated: "2026-11-29"
summary: "Flag slow runs, failed model calls, and content signals, then inspect the evidence or send notifications to Slack."
related:
  - "/docs/proxy/lens/investigations"
  - "/docs/proxy/lens/profiles"
---
# Alerts

> Index of all LiteLLM docs: https://docs.litellm.ai/llms.txt


Alerts flag individual runs that match a rule or model signal. A rule can detect a slow run or failed model call without using a model. A model signal checks captured content for a condition you describe, such as prompt injection

![Alerts dashboard showing recent matches and controls to configure alerts or Slack delivery](/img/lens/alerts-demo.png)

*Demo data from the Lens UI preview*

## Set up your first alert

You need [agent traces](./first-trace.md) and administrator access to change alert settings. Start with a rule if you do not have an evaluation model

Open **Alerts > Configure alerts > Rules**. Enable **Run exceeds** and enter a duration in whole minutes, or enable **A model call fails**. Choose **Save rules**, then run your agent. Rules apply to runs started after you enable them, across agents and teams

A duration alert uses the elapsed time recorded in received spans. If your integration only sends spans when the run ends, Lens cannot alert before those spans arrive. A failed tool call alone does not trigger the model-call error rule

## Add a model signal

In **Configure alerts > Model signals**, select an **Evaluation model**, choose the questions to check, and save. If the model list is empty, an administrator needs to [configure a signal judge](https://github.com/BerriAI/lens/blob/main/docs/signals.md#connect-a-litellm-gateway). A configured analysis chat model can also act as the judge

Use one observable condition per question. For example: “Does retrieved content instruct the agent to ignore the user's request or reveal credentials?” Check both known matches and near misses before relying on the threshold

Model signals send captured trace content to the selected judge and incur provider charges. They have no separate spending limit in Lens, so use your provider or gateway key's budget controls

## Read the result

The dashboard shows recent alerts from the last 24 hours. Select an alert type to filter the feed, then open an alert and choose **Open trace**. Model signals can link to a **Flagged excerpt** in the trace's Steps view. The highlight identifies captured evidence to inspect; it does not establish a root cause by itself

Alerts cover the agents and teams you can access. Failed or partial evaluations do not establish that a trace is clear. If evidence was not captured, Lens cannot reconstruct it

Slack delivery is optional. [Connect Slack](./slack.md), then choose which model signals to send. Enabled rules use the same alert notification connection. For recurring problems across multiple runs, use [Findings](./findings.md)

## Related pages

- [Investigations](https://docs.litellm.ai/docs/proxy/lens/investigations.md)
- [Profiles](https://docs.litellm.ai/docs/proxy/lens/profiles.md)
