# 10. Create an Alarm

## Prerequisites

### Enable automatic alerting

Navigate to **Administrator** → **Tenants**, and select the Tenant you created from the list.&#x20;

Select the **Alerting** tab, click **Enable Alerting**, and click **Update** to save the alert configuration.

## Create an Alert

Navigate to **Observability** → **Alerts**, and click **Add**. The **Create Alert** pane displays. Complete the fields with the following values:&#x20;

* **Resource Type**: `EC2`&#x20;
* **Resource**: \[*select a previously created* [*EC2 instance*](https://docs.duplocloud.com/docs/workshops/duplocloud-101-for-aws/create-your-infrastructure-and-application/4.-create-an-eks-worker-node)]&#x20;

{% hint style="info" %}
In the example below, the Friendly Name in the **Resource** field is `host02`.
{% endhint %}

Click **Next** to proceed with defining metrics data.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FvWKv3fydd5SIs5UOwhdc%2Fcreatealarm.png?alt=media&#x26;token=cd7f61c1-0ebe-4e64-abf6-47b4928d0bc1" alt=""><figcaption><p>The <strong>Create Alert</strong> pane</p></figcaption></figure></div>

Click **Next**, and define the metrics data:

* **Metric Name**: `CPUUtilization`&#x20;
* **Statistic**: `Average`&#x20;
* **Operator**: `>=`&#x20;
* **Threshold**: `75`&#x20;
* **Period**: `5 Minutes`&#x20;
* **Severity**: `Critical`

Click **Create**.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F1Ep1eNqgmkbavMvd4K49%2Falert-metr.png?alt=media&#x26;token=239d1318-fb1c-4636-ae27-c2d078f0e603" alt=""><figcaption><p>The <strong>Create Alert</strong> page for Metrics data</p></figcaption></figure></div>

## Set the Alarm with a Third-Party Integration

Navigate to **Observability** → **Faults** → **Update Notifications Config**. The **Set Alert Notifications** **Config** pane displays.&#x20;

If instructed, enter additional data and click **Update** to set the alarm.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FuLqQi30jPTxCOfBg1Lxw%2Falarm.png?alt=media&#x26;token=345a465f-4996-469c-a71c-bfa4d5490892" alt=""><figcaption><p>The <strong>Set Alert Notifications</strong> <strong>Config</strong> pane</p></figcaption></figure></div>
