# Alerts

### Introduction

Alerts empowers developers to catch complications before they develop into problems, and helps you preserve high availability and deliver high quality of service.

It also assists you in making informed decisions about the present and the future, serves as input to automation of infrastructures and, most importantly, is an indispensable learning tool.

![Alerts list](/files/JH4O1PMGfFvzGpC054Lh)

### Create an alert

The most important part of the alert creation form is "Query & Metric".

![Alert form](/files/YhZakCJnEoTOQ5GyTypz)

### Query

Define what resource you want monitor (Transactions or Segments) and the query you want perform to identify the target items.

### Metric

As a metric you can choose from a various analytic functions like count, min, max, or the average value.  The execution time or memory consume are the available metrics. You could limit this value directly in the metric so in that case you should select the count option to match the number of events within the condition specified in the query.

### Threshold

Threshold represents **when** you want receive an alert. Different conditions allows you to detect different anomalous behaviors. For any type of threshold you can read a short description of their typical use cases.

{% hint style="warning" %}
**Note**

You need to turn on **Alert** notifications in your notification channels, in order to be notified for threshold violations.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inspector.dev/concepts/alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
