> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentmark.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Alerts

> Monitor your application with customizable alerts

<Info>**Paid feature.** Alerts are available on Growth, Team, and Enterprise plans in the [AgentMark Dashboard](https://app.agentmark.co). They're not available on the Hobby (free) tier.</Info>

AgentMark alerts monitor key metrics and notify you when a metric crosses a threshold, so you hear about cost, latency, and error changes as they happen.

<Note>
  Developers configure webhook endpoints. See [Webhook documentation](/deploy/webhooks) for setup instructions.
</Note>

<img src="https://mintcdn.com/puzzlet-9ba7bb98/KmsdEn15yStMq4xE/images/platform/observability/alerts.png?fit=max&auto=format&n=KmsdEn15yStMq4xE&q=85&s=da2bd2407ced5aa57a6fa010a98703f7" alt="Alerts list showing alert name, metric, threshold, status, and last-triggered columns" className="w-full rounded-xl border border-gray-800 shadow-2xl mb-12" width="1597" height="559" data-path="images/platform/observability/alerts.png" />

The Alerts page lists each configured alert with its name, monitored metric, threshold, current status (triggered or resolved), and when it last fired.

## Overview

Alerts help you:

* Monitor important metrics like cost, latency, and error rates
* Set thresholds for acceptable values
* Define time windows for measurement
* Receive notifications via Slack or webhooks
* Track alert history to analyze patterns

## Available metrics

| Metric                | Description                                    |
| --------------------- | ---------------------------------------------- |
| **Cost**              | Total cost of LLM calls within the time window |
| **Latency**           | Response times for AI requests                 |
| **Error rate**        | Percentage of failed requests                  |
| **Evaluation scores** | Quality of AI responses from scoring pipelines |

## Creating alerts

To create a new alert:

1. Navigate to your app's **Alerts** tab in the Dashboard
2. Click **Create Alert**
3. Configure the alert:
   * **Name**: descriptive name for the alert
   * **Metric**: what to monitor. AgentMark validates thresholds per metric: error rate 0-100 (percent), latency a positive integer in milliseconds, cost greater than 0 (dollars), evaluation score between 0 and 1
   * **Threshold**: value that triggers the alert
   * **Time window**: period over which AgentMark measures the metric, between 5 and 100 minutes
   * **Evaluation name** (for score alerts): specific score to monitor
   * **Aggregation type** (for score alerts): average or individual scores
   * **Threshold direction** (for score alerts): alert above or below threshold

A new alert binds to the environment selected in the Dashboard header; alerts without an environment apply app-wide and appear under every environment.

## Notification options

### Slack integration

Receive alerts directly in Slack:

1. Connect Slack and pick the notification channel in **Settings → Integrations**. The channel binding is per environment, so each environment can post to its own channel
2. Enable the **Slack Notifications** toggle when creating an alert

If you enable the toggle before you connect Slack, the dialog shows a **Connect Slack** button that takes you to Settings → Integrations.

### Webhooks

For custom integrations:

1. Configure your webhook endpoint in **Settings → Integrations** (per environment)
2. Enable the **Custom Webhook** toggle when creating an alert
3. Receive alerts as HTTP POST requests with alert details

For webhook payload format and implementation details, see the [Webhook documentation](/deploy/webhooks).

### Alerts API

You can also create and manage alerts programmatically through `/v1/alerts` (CRUD, trigger history, and Slack channel listing). See the [API reference](/api-reference/overview).

## Alert status

Alerts have two states:

* **Triggered**: the monitored metric has crossed the threshold.
* **Resolved**: the metric has returned to the acceptable side of the threshold.

## Alert history

View alert history to analyze patterns:

1. Navigate to the **Alerts** tab
2. Click an alert to see when it triggered, the value that triggered it, when it resolved, and how frequently it fires

## Use cases

* **Cost management**: get notified when daily spending exceeds budget
* **Performance monitoring**: alert when latency degrades beyond acceptable levels
* **Quality assurance**: track when evaluation scores drop below quality thresholds
* **Error detection**: catch error rate spikes before they impact users

## Best practices

* **Set thresholds from your baseline.** Start above your observed normal range, then tighten as you learn your traffic.
* **Choose appropriate windows** to match your usage patterns and avoid alert fatigue.
* **Configure multiple channels.** Use Slack plus a webhook for critical alerts.
* **Revisit thresholds** as your usage patterns evolve.

## Next steps

<CardGroup cols={2}>
  <Card title="Traces and logs" icon="chart-line" href="/observe/traces-and-logs">
    Monitor prompt execution
  </Card>

  <Card title="Sessions" icon="users" href="/observe/sessions">
    Track user interactions
  </Card>

  <Card title="Dashboards" icon="chart-bar" href="/observe/dashboards">
    View overall performance
  </Card>

  <Card title="Evaluations" icon="flask" href="/evaluate/writing-evals">
    Set up evaluation alerts
  </Card>
</CardGroup>

<div className="mt-8 rounded-lg bg-blue-50 p-6 dark:bg-blue-900/30">
  <h3 className="font-semibold mb-3">Have questions?</h3>
  <p className="mb-4">Reach out any time:</p>

  <ul>
    <li>
      Email the team at <a href="mailto:hello@agentmark.co" className="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200">[hello@agentmark.co](mailto:hello@agentmark.co)</a> for support
    </li>

    <li>
      Schedule an <a href="https://cal.com/ryan-randall/enterprise" className="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-200">Enterprise Demo</a> to learn about AgentMark's business solutions
    </li>
  </ul>
</div>
