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

# Alerts

> Create and manage alerts for errors and metrics thresholds.

## Setup

In Trace0, you can set alerts for both errors and metrics thresholds. To create a new alert, head to the [Alerts](https://app.trace0hq.com/alerts) section and click the `Add New Alert` button:

<img className="block dark:hidden" alt="Alerts Light" src="https://mintcdn.com/trace0/m31dn1vphNRcCRnY/images/alerts-light.png?fit=max&auto=format&n=m31dn1vphNRcCRnY&q=85&s=1cc4dfe50d9a57d4858f7394315ca714" width="2874" height="1224" data-path="images/alerts-light.png" />

<img className="hidden dark:block" alt="Alerts Light" src="https://mintcdn.com/trace0/m31dn1vphNRcCRnY/images/alerts-dark.png?fit=max&auto=format&n=m31dn1vphNRcCRnY&q=85&s=a5f5fe6a793e96ee3d41c53807f76ad0" width="2862" height="1254" data-path="images/alerts-dark.png" />

You can then select the service the alert applies to, then choose an alert type — [Error Alert](#error-alerts) or [Metric Alert](#metric-alerts).

### Error Alerts

For error alerts, the frequency is automatically set to `Every Event`, meaning you will receive an alert each time a request to your service fails.

You can then set a `Destination` — Slack, Email, or both.

* If you select `Email`, enter the email address you want to receive alert notifications.
* If you select `Slack`, enter the [Webhook URL](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) for the channel you want to receive alert notifications.

<img className="block dark:hidden" alt="Alerts Light" src="https://mintcdn.com/trace0/TZE_GvcBFqdrOj-c/images/error-alert-light.png?fit=max&auto=format&n=TZE_GvcBFqdrOj-c&q=85&s=41564d9b56580926e900961c4d9705c6" width="1904" height="1280" data-path="images/error-alert-light.png" />

<img className="hidden dark:block" alt="Alerts Light" src="https://mintcdn.com/trace0/RqMrQ3CsdCDsZ5c3/images/error-alert-dark.png?fit=max&auto=format&n=RqMrQ3CsdCDsZ5c3&q=85&s=29cab3d959b73b524d06af08fa8c0034" width="1982" height="1258" data-path="images/error-alert-dark.png" />

### Metric Alerts

For metric alerts, you first select the `Metric Type` — Request Latency, Error Rate or Max Memory Used. Each type is explained in further detail below:

<Tabs>
  <Tab title="Request Latency">
    For Request Latency alerts, you can set the following parameters:

    * `Latency Percentile` — P99, P95, P90, P75, P50
    * `Condition` — Greater than, Greater than or equals, Less than, Less than or equals, Equals
    * `Threshold` — A number in either milliseconds or seconds
    * `In The Last (minutes)` — A number in minutes
          <img className="block dark:hidden" alt="Alerts Light" src="https://mintcdn.com/trace0/TZE_GvcBFqdrOj-c/images/request-latency-alert-light.png?fit=max&auto=format&n=TZE_GvcBFqdrOj-c&q=85&s=3b8a4b2783cc0e6effaf9f5cca55118b" width="1926" height="1438" data-path="images/request-latency-alert-light.png" />
          <img className="hidden dark:block" alt="Alerts Light" src="https://mintcdn.com/trace0/hPor2uLPZutifyKW/images/request-latency-alert-dark.png?fit=max&auto=format&n=hPor2uLPZutifyKW&q=85&s=24fc2e77f1e979496cc67e092f9cd488" width="1820" height="1434" data-path="images/request-latency-alert-dark.png" />
  </Tab>

  <Tab title="Error Rate">
    For Error Rate alerts, you can set the following parameters:

    * `Condition` — Greater than, Greater than or equals, Less than, Less than or equals, Equals
    * `Threshold` — A number as a percentage, i.e. the error rate
    * `In The Last (minutes)` — A number in minutes
          <img className="block dark:hidden" alt="Alerts Light" src="https://mintlify.s3.us-west-1.amazonaws.com/trace0/images/error-rate-alert-light.png" />
          <img className="hidden dark:block" alt="Alerts Light" src="https://mintcdn.com/trace0/hPor2uLPZutifyKW/images/error-rate-alert-dark.png?fit=max&auto=format&n=hPor2uLPZutifyKW&q=85&s=914a096421641d335a309baf6e275222" width="1784" height="1286" data-path="images/error-rate-alert-dark.png" />
  </Tab>

  <Tab title="Max Memory Used">
    For Max Memory Used alerts, you can set the following parameters:

    * `Condition` — Greater than, Greater than or equals, Less than, Less than or equals, Equals
    * `Threshold` — A number in KB, MB, or GB
    * `In The Last (minutes)` — A number in minutes
          <img className="block dark:hidden" alt="Alerts Light" src="https://mintcdn.com/trace0/hPor2uLPZutifyKW/images/memory-alert-light.png?fit=max&auto=format&n=hPor2uLPZutifyKW&q=85&s=9f84a4bbedfa8cbc8341d20e87181ead" width="1738" height="1292" data-path="images/memory-alert-light.png" />
          <img className="hidden dark:block" alt="Alerts Light" src="https://mintcdn.com/trace0/hPor2uLPZutifyKW/images/memory-alert-dark.png?fit=max&auto=format&n=hPor2uLPZutifyKW&q=85&s=d7bd5ea8b887e8bd5fe2ca55b995a6d3" width="1752" height="1290" data-path="images/memory-alert-dark.png" />
  </Tab>
</Tabs>

Finally, you can set a `Destination` — Slack, Email, or both.

* If you select `Email`, enter the email address you want to receive alert notifications.
* If you select `Slack`, enter the [Webhook URL](https://docs.slack.dev/messaging/sending-messages-using-incoming-webhooks/) for the channel you want to receive alert notifications.

## Triggered Alerts

Once an alert is triggered, you will be notified in the Destinations that you configured for the alert, and it will also appear in the `Triggered` section:

<img className="block dark:hidden" alt="Triggered Alerts Summaries Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-alerts-summaries-light.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=dbcad6c20f241f8fbdfbfa11f66e5b28" width="2876" height="1094" data-path="images/triggered-alerts-summaries-light.png" />

<img className="hidden dark:block" alt="Triggered Alerts Summaries Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-alerts-summaries-dark.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=633961f2518a8d2e293382245fcf2a44" width="2866" height="1102" data-path="images/triggered-alerts-summaries-dark.png" />

You can then click into a triggered alert to view more details about the alert.

### Error Alert Detail

For triggered error alerts, you can view the alert **Volume Over Time**, the [**Tags**](/platform/transactions#tags) **Involved** to understand which users, customers, orders, or other business entities were affected, and the **Failing Transactions** that triggered the alert.

<img className="block dark:hidden" alt="Triggered Error Alert Detail One Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-error-alert-detail-one-light.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=83207724445accfe8f48a529e0ec67b3" width="2872" height="1392" data-path="images/triggered-error-alert-detail-one-light.png" />

<img className="hidden dark:block" alt="Triggered Error Alert Detail One Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-error-alert-detail-one-dark.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=b2f1615184ccbc0b5983487225408e9a" width="2880" height="1388" data-path="images/triggered-error-alert-detail-one-dark.png" />

<p />

<img className="block dark:hidden" alt="Triggered Error Alert Detail Two Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-error-alert-detail-two-light.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=cff44546b9454d97eb1537c78447303e" width="2880" height="1422" data-path="images/triggered-error-alert-detail-two-light.png" />

<img className="hidden dark:block" alt="Triggered Error Alert Detail Two Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-error-alert-detail-two-dark.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=0a43fbc10ef477196d3383ee1c5ea8f5" width="2876" height="1424" data-path="images/triggered-error-alert-detail-two-dark.png" />

### Metric Alert Detail

For triggered metric alerts, you can view the alert **Volume Over Time**, the [**Tags**](/platform/transactions#tags) **Involved** to understand which users, customers, orders, or other business entities were affected, and the **Contributing Transactions** that led to the metric threshold being exceeded.

<img className="block dark:hidden" alt="Triggered Metric Alert Detail One Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-metric-alert-detail-one-light.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=236fcac6d13a96a924e17931b30b9497" width="2878" height="1328" data-path="images/triggered-metric-alert-detail-one-light.png" />

<img className="hidden dark:block" alt="Triggered Metric Alert Detail One Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-metric-alert-detail-one-dark.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=304b0840ef57035c7b210da73c12d33e" width="2880" height="1322" data-path="images/triggered-metric-alert-detail-one-dark.png" />

<p />

<img className="block dark:hidden" alt="Triggered Metric Alert Detail Two Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-metric-alert-detail-two-light.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=ba08589451d2f54a13e3b93665f960f9" width="2880" height="1418" data-path="images/triggered-metric-alert-detail-two-light.png" />

<img className="hidden dark:block" alt="Triggered Metric Alert Detail Two Light" src="https://mintcdn.com/trace0/glgK5Xr78zwkf19l/images/triggered-metric-alert-detail-two-dark.png?fit=max&auto=format&n=glgK5Xr78zwkf19l&q=85&s=82528e6033b29f536d10ad504a2a0fb5" width="2880" height="1390" data-path="images/triggered-metric-alert-detail-two-dark.png" />
