content/shared/influxdb-v2/monitor-alert/checks/create.md
Create a check in the InfluxDB user interface (UI). Checks query data and apply a status to each point based on specified conditions.
A check consists of two parts – a query and check configuration.
critwarninfook_level column.There are two types of checks:
A threshold check assigns a status based on a value being above, below, inside, or outside of defined thresholds.
A deadman check assigns a status to data when a series or group doesn't report in a specified amount of time.
In the navigation menu on the left, select Alerts > Alerts.
{{< nav-icon "alerts" >}}
Click {{< caps >}}{{< icon "plus" >}} Create{{< /caps >}} and select the type of check to create.
Click Name this check in the top left corner and provide a unique name for the check, and then do the following:
(Optional) In the Name this check field at the top, enter a unique name for the check.
Select the bucket, measurement, field and tag sets to query.
If creating a threshold check, select an aggregate function. Aggregate functions aggregate data between the specified check intervals and return a single value for the check to process.
In the Aggregate functions column, select an interval from the interval drop-down list (for example, "Every 5 minutes") and an aggregate function from the list of functions.
Click {{< caps >}}Submit{{< /caps >}} to run the query and preview the results. To see the raw query results, click the View Raw Data {{< icon "toggle" >}} toggle.
Click {{< caps >}}2. Configure Check{{< /caps >}} near the top of the window.
In the {{< caps >}}Properties{{< /caps >}} column, configure the following:
Select the interval to run the check (for example, "Every 5 minutes"). This interval matches the aggregate function interval for the check query. Changing the interval here will update the aggregate function interval.
Delay the execution of a task to account for any late data. Offset queries do not change the queried time range.
{{% note %}}Your offset must be shorter than your check interval. {{% /note %}}
Add custom tags to the query output. Each custom tag appends a new column to each row in the query output. The column label is the tag key and the column value is the tag value.
Use custom tags to associate additional metadata with the check. Common metadata tags across different checks lets you easily group and organize checks. You can also use custom tags in notification rules.
In the {{< caps >}}Status Message Template{{< /caps >}} column, enter the status message template for the check. Use Flux string interpolation to populate the message with data from the query.
Check data is represented as a record, r.
Access specific column values using dot notation: r.columnName.
Use data from the following columns:
_check_id_check_name_level_source_measurement_typeFrom ${r._check_name}:
${r._field} is ${r._level}.
Its value is ${string(v: r.field_name)}.
When a check generates a status, it stores the message in the _message column.
Define check conditions that assign statuses to points. Condition options depend on your check type.
90s, 5m, 2h30m, etc.30m, 2h, 3h15m, etc.Click the green {{< icon "check" >}} in the top right corner to save the check.
Create a new check by cloning an existing check.
Go to Alerts > Alerts in the navigation on the left.
{{< nav-icon "alerts" >}}
Click the {{< icon "gear" >}} icon next to the check you want to clone and then click Clone.