# Cronitor Integration

[Cronitor](https://cronitor.io/)’s webhook integration with ilert allows you to automatically forward monitoring alerts from Cronitor into ilert, enabling centralized incident management, automated escalation policies, and reduced MTTR. By setting up this connection, you ensure that critical alerts from Cronitor are never missed and are handled according to your on-call schedule.

## In ilert: Create a Cronitor alert source&#x20;

1. Go to **Alert sources** -> **Alert sources** and click **Create new alert source**.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FjX0cS4q7woTXKajZmc1W%2FScreenshot%202023-08-28%20at%2010.21.10.png?alt=media&#x26;token=8ef3666b-84eb-4b51-abee-f07303313941" alt=""><figcaption></figcaption></figure>
2. Search for **Cronitor** in the search field, click the Cronitor tile, and then **Next**.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FlXzQlJpaTFSR49AZk0xA%2FScreenshot%202023-08-28%20at%2010.24.23.png?alt=media&#x26;token=cffeacb4-57b9-47d4-827d-b0f6b1afd914" alt=""><figcaption></figcaption></figure>
3. Give your alert source a name, optionally assign teams, and click **Next**.
4. Select an **escalation policy** by creating a new one or assigning an existing one.

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FNnuZqONaIhbOf6fn4OkZ%2FScreenshot%202023-08-28%20at%2011.37.47.png?alt=media&#x26;token=8a74f7b5-5bd2-4eea-97fa-1c1dbb041333" alt=""><figcaption></figcaption></figure>
5. Select your [Alert grouping](https://docs.ilert.com/alerting/configure-alerting/alert-sources#alert-grouping) preference and click **Continue setup**. You may click **Do not group alerts** for now and change it later.&#x20;

   <figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FueugN4JgHn1c90ggFA6u%2FScreenshot%202023-08-28%20at%2011.38.24.png?alt=media&#x26;token=b8009daf-3ca8-4264-a6fa-e42ef7333205" alt=""><figcaption></figcaption></figure>
6. The next page shows additional settings, such as customer alert templates or notification priority. Click **Finish setup** for now.
7. On the final page, an API key and/or webhook URL will be generated. You will need it later.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2F64Xmo6ortpldtMt1x2fa%2F5.png?alt=media&#x26;token=c2b358f6-f5c0-47df-9ed3-a1753aee2cd3" alt=""><figcaption></figcaption></figure>

## In Cronitor: Creating a webhook integration

1. On the sidebar, navigate to **Settings**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FAAo1h0ak1Lx2dm2Uso3g%2F1-2.png?alt=media&#x26;token=ede18a1b-bddc-4b76-8dc2-1af750fdfa1d" alt=""><figcaption></figcaption></figure>

2. Select **Integrations**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FBmXPitVv4JsSzbcLyroW%2F2-2.png?alt=media&#x26;token=de45e273-f275-40c0-b8ac-eb228506cd54" alt=""><figcaption></figcaption></figure>

3. Click the **Create Integration** button.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fxru2GPSgAnt9oK6qtNAa%2F3-2.png?alt=media&#x26;token=48fa0e22-61a3-493b-9c71-1bd285590b19" alt=""><figcaption></figcaption></figure>

4. Select **Webhooks** from the integration list.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FD2Ilou1SOAGSzZdzCs0r%2F4-2.png?alt=media&#x26;token=ad65a939-08e9-4189-ab28-fe5f741fd53d" alt=""><figcaption></figcaption></figure>

5. Enter an **Integration Name**.
6. Paste the **previously generated Integration URL** from ilert into the **Webhook URL** field.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2Fag58GhuGwi52HFQSoiWp%2F6-2.png?alt=media&#x26;token=8b109f00-1fc9-4723-b44a-939885709701" alt=""><figcaption></figcaption></figure>

## FAQ

#### **Will alerts in ilert be resolved automatically?**

Yes, as soon as a Cronitor sends an alert event with field `type` value set to `recovery`, corresponding alert in ilert will be resolved.
