# Alert notifications

DuploCloud supports viewing of Faults in the portal and sending notifications and emails to the following systems:

* Sentry
* PagerDuty
* NewRelic
* OpsGenie

You will need to generate an keys from each of these vendor systems, and then provide that key to DuploCloud to enable integration.

## Generating an Integration Key from Sentry <a href="#id-1-toc-title" id="id-1-toc-title"></a>

1. In the [Sentry ](https://sentry.io/welcome/?utm_source=google\&utm_medium=cpc\&utm_campaign=19655969969\&utm_content=g\&utm_term=sentry\&device=c\&gclid=CjwKCAjw5pShBhB_EiwAvmnNV2cqd7lWEuiy_n0HSuCc17JGB9vVYqdwm5_QiDgJEXIWuz34u9h18hoCpbEQAvD_BwE\&gclid=CjwKCAjw5pShBhB_EiwAvmnNV2cqd7lWEuiy_n0HSuCc17JGB9vVYqdwm5_QiDgJEXIWuz34u9h18hoCpbEQAvD_BwE)website, navigate to **Projects** -> **Create a New Project**.
2. Click **Settings** -> **Projects** -> ***project-name*** -> **Client keys**. The **Client Keys** page displays.
3. Complete the **DSN** fields on the screen.
4. Click **Generate New Key**.<br>

   ![Client Keys page on Sentry website with DSN fields](https://duplocloud.com/wp-content/uploads/2021/11/sentry.png)
5. In the DuploCloud Portal, navigate to **Observability** -> **Faults**.
6. Click **Update Notifications Config**. The **Set Alert Notifications Config** pane displays.
7. In the **Sentry - DSN** field, enter the key you received from Sentry.
8. In the **Alerts Frequency (Seconds)** field, enter a time interval in seconds when you want alerts to be displayed.
9. Click **Update**.

## Generating an Integration Routing Key from PagerDuty <a href="#id-2-toc-title" id="id-2-toc-title"></a>

1. In the [PagerDuty ](https://www.pagerduty.com/)website home page, select the **Services** tab and navigate to the service that receives Events. If a Service does not exist, click **New Service.** When prompted, enter a friendly **Name** (for example, your DuploCloud Tenant name) and click **Next.**
2. Assign an **Escalation** policy, or use an existing policy.
3. Click **Integration**.
4. Click **Events API V2**. Your generated **Integration Key** is displayed as the second item on the right side of the page. This is the Routing Key you will supply to DuploCloud.
5. Copy the **Integration Key** to your Clipboard.
6. In the DuploCloud Portal, navigate to **Observability** -> **Faults**.
7. Click **Update Notifications Config**. The **Set Alert Notifications Config** pane displays.
8. In the **Pager Duty - Routing Key** field, enter the key you generated from PagerDuty.
9. In the **Alerts Frequency (Seconds)** field, enter a time interval in seconds when you want alerts to be displayed.
10. Click **Update**.

## Generating an Integration Key from NewRelic

1. In the [NewRelic](https://docs.newrelic.com/) website, use the [Event API](https://docs.newrelic.com/docs/data-apis/ingest-apis/event-api/introduction-event-api/) to generate an [API key](https://docs.newrelic.com/docs/apis/intro-apis/new-relic-api-keys/) to send events to NewRelic `Insights`.
2. In the DuploCloud Portal, navigate to **Observability** -> **Faults**.
3. Click **Update Notifications Config**. The **Set Alert Notifications Config** pane displays.
4. In the **NewRelic - API Key** field, enter the key you generated from NewRelic.
5. In the **Alerts Frequency (Seconds)** field, enter a time interval in seconds when you want alerts to be displayed.
6. Click **Update**.

## OpsGenie

1. In the [OpsGenie](https://www.atlassian.com/software/opsgenie/what-is-opsgenie?\&aceid=\&adposition=\&adgroup=141766912743\&campaign=18808090465\&creative=632740825597\&device=c\&keyword=opsgenie\&matchtype=e\&network=g\&placement=\&ds_kids=p74114620049\&ds_e=GOOGLE\&ds_eid=700000001786355\&ds_e1=GOOGLE\&gclid=CjwKCAjw5pShBhB_EiwAvmnNV-jSU1vYU3psSiv9g_lb8lRx5waZPMsYfcqoIv3ONXKt-fR5KsHCcxoCRvEQAvD_BwE\&gclsrc=aw.ds) website, [generate an API Key to integrate DuploCloud faults with OpsGenie](https://support.atlassian.com/opsgenie/docs/what-is-a-default-api-integration/).
2. In the DuploCloud Portal, navigate to **Observability** -> **Faults**.
3. Click **Update Notifications Config**. The **Set Alert Notifications Config** pane displays.
4. In the **OpsGenie - API Key** field, enter the key you generated from OpsGenie.
5. In the **Alerts Frequency (Seconds)** field, enter a time interval in seconds when you want alerts to be displayed.
6. Click **Update**.

<div align="left"><figure><img src="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2F55kAj9lgXwKpcr0Xj70w%2FAWS_Set_notify_config.png?alt=media&#x26;token=2a033a36-e5df-4675-801a-52450ca9512f" alt=""><figcaption><p><strong>Set Alert Notifications Config</strong> pane in DuploCloud Portal</p></figcaption></figure></div>


---

# 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.duplocloud.com/docs/automation-platform/overview/use-cases/faults-and-alarms/alerting-and-notifications.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.
