# Phare Uptime Integration

[Phare Uptime](https://phare.io/) is a website and API monitoring platform that combines uptime checks, incident management, alerts, and status pages. By integrating Phare with ilert, you turn Phare detections and incident updates into routed, actionable alerts that reach the correct on-call responders and auto-resolve when service is restored. This integration is useful for teams that combine Phare Uptime with other monitoring and ITSM solutions and are looking for a central dispatcher for all critical events.

## In ilert: Create a Phare alert source

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 **Phare** in the search field, click the Phare tile, and then **Next**.

   <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.

   <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%2FGeNCaYTpiUB5hyQXsTJx%2Fil-1.png?alt=media&#x26;token=bafb5531-072d-4e42-888b-4f81e6f5ff9b" alt=""><figcaption></figcaption></figure>

## In Phare Uptime: Create a Webhook

1. On the side menu, click **Integrations**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FpMZYmmVV006chReBD1WV%2F1.png?alt=media&#x26;token=963f32fa-fc1e-44d1-bc96-5dc16cf7aaab" alt=""><figcaption></figcaption></figure>

2. Now select **ilert**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FFEMhET8TSBw1V1cZ21rI%2Fnew1.png?alt=media&#x26;token=4d81d397-dda2-4a2c-ae62-fc41421667fe" alt=""><figcaption></figcaption></figure>

3. Click on the **New Installation** button.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FAvFeeLJDhYjfTrEuuuEX%2Fnew2.png?alt=media&#x26;token=ef2b7ea2-38e8-4ac3-bb92-993d5d4ebbe2" alt=""><figcaption></figcaption></figure>

4. Enter an **Integration Name**.
5. Enter the in ilert previously generated integration key into the **Integration key** field.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FUvPnuzNQeP1vB08RkqNQ%2Fnew3.png?alt=media&#x26;token=3895af5e-d47b-45d0-8f0d-073fa2122501" alt=""><figcaption></figcaption></figure>

6. Click on the **Create** button to finish the setup.

## In Phare: Create Alert Rules

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

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FmPwdCeAEAaz5HhWTU15Z%2F5.png?alt=media&#x26;token=1d7ed682-7312-4fd9-96b5-5af6bb02f832" alt=""><figcaption></figcaption></figure>

2. Click **Alert Rules**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FFPlC7fq5O1Tzd1TDn460%2F6.png?alt=media&#x26;token=8c18f944-8445-4d6b-be7c-169ad2993e67" alt=""><figcaption></figcaption></figure>

3. Now click on the **New alert rule** button.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FYkjAwhCB7GKsoQLIMxfg%2F7.png?alt=media&#x26;token=dd369ea2-ceff-478d-bfba-b88190e281da" alt=""><figcaption></figcaption></figure>

4. Select **Incident created** as **Event type**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FfdXvJFXK7eYPsYNQPdR5%2F8.png?alt=media&#x26;token=0a8ce689-499b-447a-9d78-ca1a363f92ef" alt=""><figcaption></figcaption></figure>

5. Scroll down to the **Send** section and choose the previously created webhook integration as **Alert integration**.

<figure><img src="https://3394882078-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M76ygPnS4HUcFSX8ulm%2Fuploads%2FO75SEynTKInTRUbp8Pem%2F9.png?alt=media&#x26;token=53c160a7-7f52-441b-a07e-16f26eae517c" alt=""><figcaption></figcaption></figure>

6. Repeat these steps for the **Event type**: **Incident recovered**.

## FAQ

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

Yes, as soon as a Phare.io sends an incident event with field `status` value set to `recovered`, corresponding alert in ilert will be resolved.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ilert.com/integrations/inbound-integrations/phareio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
