Streamline your work process by creating alerts directly from your [Custom Dashboard](https://coralogix.com/docs/user-guides/custom-dashboards/getting-started/index.md) [line chart](https://coralogix.com/docs/user-guides/custom-dashboards/widgets/line-charts/index.md) widgets. Use the thresholds, variables, and filters embedded in your widget to create alerts easily without ever leaving your custom dashboard.

## Overview

Once you've created a [line chart](https://coralogix.com/docs/user-guides/custom-dashboards/widgets/line-charts/index.md) to display the data related to the system or application being monitored, Coralogix allows you to create an alert directly from your [custom dashboard](https://coralogix.com/docs/user-guides/custom-dashboards/getting-started/index.md). Define it using the **thresholds**, **variables**, and **filters** you've used to build your visualization.

### Thresholds

Observing Custom Dashboard visualizations over time allows users to establish patterns and normal behavior for the system or application. This normal behavior serves as a baseline for comparison. Users can then create thresholds - predetermined limits based on desirable performance levels for specific metrics - to determine when abnormal events occur, such as sudden spikes or drops in performance, deviations from established patterns, or any unexpected behavior. For example, you might set a threshold for CPU usage at 80%, indicating that if the CPU usage exceeds this value, it is considered high and needs attention.

### Alerts

You can create [log](https://coralogix.com/docs/user-guides/alerting/create-an-alert/logs/threshold-alerts/index.md) or [metric-based](https://coralogix.com/docs/user-guides/alerting/create-an-alert/metrics/threshold-alerts/index.md) alerts with your line chart parameters.

## Use-case

A DevOps engineer has a line chart widget with many spikes, but one spike is significantly higher than the others. By creating an alert directly from the dashboard, the engineer can easily put the alert threshold at a point that is above the normal spikes, but below the unusually high one, helping avoid alert fatigue. Once the threshold is defined, the query is brought into the alert along with any variables and filters used, and the DevOps engineer can create the rest of the alert simply and easily.

## Configuration

There are two ways to create alerts from your Custom Dashboard line chart.

- Create an alert using all the data in the widget.
- Create an alert using a single time series from the legend.

### Create an alert from the entire widget

1.

From your Coralogix toolbar, navigate to **Dashboards** > **Custom Dashboards**.

2.

Select an existing custom dashboard or [create a new one](https://coralogix.com/docs/user-guides/custom-dashboards/getting-started/index.md).

3.

Right-click on the three dots on the upper right-hand side of the line chart widget for which you want to create an alert. Click **Create Alert**, causing the widget to be expanded and a **Create new alert** popup box to appear.

4.

Select the threshold for your new alert. You can do this either by using the mouse to adjust the threshold on the widget, or by entering a numeric value in the threshold field in the popup box.

5.

Select whether the trigger should be More Than or Less Than the threshold in the **Create New Alert** box.

6.

Click **Next**, causing the **New Alert** overlay to appear.

The **Query** parameter will be automatically populated with the widget's query, including filters and variables. The **Conditions** parameter will be automatically populated with the widget's threshold, appearing as **Value**.

7.

Fill out the rest of the alert details and notification group info as described in [Logs-based Alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/logs/threshold-alerts/index.md) (for Log queries) or [Metric Alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/metrics/threshold-alerts/index.md) (for Metric queries).

8.

Toggle **Enable Alert.** Click **Create Alert**.

### Create an alert for a single time series from the widget legend

1.

From your Coralogix toolbar, navigate to **Dashboards** > **Custom Dashboards**.

2.

Select an existing custom dashboard or [create a new one](https://coralogix.com/docs/user-guides/custom-dashboards/getting-started/index.md).

3.

Right-click on the time series for which you want to create an alert. Click **Create Alert**.

This will cause the widget to be expanded, displaying only the time series selected. A **Create new alert** popup box will appear.

4.

Select the threshold for your new alert. You can do this either by using the mouse to adjust the threshold on the widget, or by entering in a numeric value in the threshold field in the popup box.

5.

Select whether the trigger should be More Than or Less Than the threshold in the Create New Alert box.

6.

Click **Next**, causing the New Alert overlay to appear.

The **Query** parameter will be automatically populated with the widget's query, including filters and variables. The **Conditions** parameter will be automatically populated with the widget's threshold, appearing as **Value**.

7.

Fill out the rest of the alert details and notification group info as described in [Logs-based Alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/logs/threshold-alerts/index.md) (for Log queries) or [Metric Alerts](https://coralogix.com/docs/user-guides/alerting/create-an-alert/metrics/threshold-alerts/index.md) (for Metric queries).

8.

Toggle **Enable Rule**. Click **Create Alert**.

## Support

**Need help?**

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us **via our in-app chat** or by sending us an email at [support@coralogix.com](mailto:support@coralogix.com).

## Next steps

Learn how to [migrate from OpenSearch to Coralogix Custom Dashboards](https://coralogix.com/docs/user-guides/custom-dashboards/tutorials/migrate-from-opensearch-to-coralogix-custom-dashboards/index.md).
