## Configure Alerts with Min and Max Conditions

When creating alerts in Kloudfuse, use the **Min** and **Max** conditions carefully. Improper setup may cause alerts to miss critical events or trigger inconsistently.

#### Steps

- **Min condition**

- **Max condition**

Use the **Min** condition when you want to trigger an alert if **any data point** in the time range crosses a threshold.

1. In the **Set Condition** section:
   - Select **Min** as the **Trigger when** option.
   - Choose the query (for example, `Query (a)`).
   - Set the comparison rule, such as **is above threshold over 5 minutes**.

2. Enter the **Alert threshold** value.

3. Expand **Configure Warning and Recovery Thresholds** if needed.

4. Under **No data and error handling**, select:
   - **Evaluate as Zero** → if data is missing.
   - **Keep Last State** → if there is an execution error or timeout.

Use the **Max** condition when you want to trigger an alert if the **highest value** in the time range drops below a threshold.

1. In the **Set Condition** section:
   - Select **Max** as the **Trigger when** option.
   - Choose the query (for example, `Query (a)`).
   - Set the comparison rule, such as **is below threshold over 10 minutes**.

2. Enter the **Alert threshold** value.

3. Expand **Configure Warning and Recovery Thresholds** if needed.

4. Under **No data and error handling**, select options based on your monitoring needs.

#### Notes

- Use **Min** when working with **status filters** in metrics, and always enable **Evaluate as Zero** during alert creation. After setup, reset the alert by updating the time range or threshold and disabling **Evaluate as Zero** if necessary.

- Use **Max** when working with thresholds that must not drop below a certain level (for example, available nodes).
