> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allquiet.app/llms.txt
> Use this file to discover all available pages before exploring further.

# New Relic

> Connect New Relic Alerts into All Quiet

<Info>Setup time: 6 Min</Info>

Integrate New Relic with All Quiet for streamlined incident management and enhanced alert handling.

The process of integrating New Relic alerts involves only two steps:

1. Create a New Relic integration on the All Quiet platform to obtain a webhook URL.
2. Use this URL in New Relic to create a workflow with a webhook destination.

## 1. Create a New Relic integration on All Quiet

### 1.1 Create an Integration on All Quiet

1. Click on the `Inbound Integrations` tab.
2. Click on `+ Create`.

<img className="NewRelic_Create" src="https://mintcdn.com/allquiet/LprUf3XBqV5kYbwv/images/newrelic/01.png?fit=max&auto=format&n=LprUf3XBqV5kYbwv&q=85&s=f85148db5b59670310f5c17fa50b2efc" width="2740" height="678" data-path="images/newrelic/01.png" />

### 1.2 Select New Relic for the integration's type

1. Enter a `Display Name` for your integration, e.g. "New Relic".
2. Select a `Team`.
3. Select `New Relic` as the integration's type.
4. Click `Create Inbound Integration`.

<img className="NewRelic_Select" src="https://mintcdn.com/allquiet/LprUf3XBqV5kYbwv/images/newrelic/02.png?fit=max&auto=format&n=LprUf3XBqV5kYbwv&q=85&s=d41479afec493329875998eb692d827e" width="2177" height="2236" data-path="images/newrelic/02.png" />

### 1.3 Get the All Quiet webhook URL

Copy your webhook URL. You'll need it later on the New Relic platform.

<img className="NewRelic_Get" src="https://mintcdn.com/allquiet/LprUf3XBqV5kYbwv/images/newrelic/03.png?fit=max&auto=format&n=LprUf3XBqV5kYbwv&q=85&s=a1ea003d4f48a696381dab05fd64b1c7" width="2138" height="882" data-path="images/newrelic/03.png" />

## 2. Create a New Relic workflow with a webhook destination

The following steps will be done on the New Relic platform. So, log in to New Relic with your account.

### 2.1 Create an Alert Condition

1. Go to *Alerts & UI -> Alert Conditions (policies)*
2. Create an alert condition that you'd like to monitor. In the example provided, a condition has been added to monitor if the CPU load is above 50%.
3. Navigate to the *Notification settings* tab

<img className="NewRelic_Alert" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/04.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=95aa36d9846bf5938a10cabed3bbcd25" width="1878" height="1135" data-path="images/newrelic/04.png" />

### 2.2 Create a workflow

In the Notification settings, click `Create workflow`

<img className="NewRelic_Workflow" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/05.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=4106070b8860440126957ea7830c7793" width="1881" height="1141" data-path="images/newrelic/05.png" />

### 2.3 Add Webhook channel

Click on `Webhook` to add a webhook notification channel

<img className="NewRelic_Webhook" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/06.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=eea30f8ca1f5b1f75baef4cce2a3db36" width="1312" height="988" data-path="images/newrelic/06.png" />

### 2.4 Add a destination to Webhook channel

1. Enter a channel name, e.g. *"All Quiet Channel"*
2. Click on "Add a destination" to configure the destination (Webhook)

<img className="NewRelic_Destination" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/07.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=0f1f4d672e42d3eb8349d9d846718cb4" width="1252" height="556" data-path="images/newrelic/07.png" />

### 2.5 Configure Webhook channel

1. Enter a name for the Webhook, e.g. *"All Quiet Webhook"*
2. Paste the All Quiet webhook URL from [step 1.3.](/integrations/inbound/newrelic#1-3-get-the-all-quiet-webhook-url) into *Endpoint URL*
3. Click *"Save destination"*

<img className="NewRelic_Configure" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/08.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=ab0d37f0de4e2c5f74ec51c0891257ba" width="1342" height="961" data-path="images/newrelic/08.png" />

### 2.6 Finish editing notification message

1. Now that you've configured a new destination, select the corresponding item for the *"Destination"* field.
2. Click *`Send test notification`*. It's helpful to send a test notification to All Quiet so you can easily map the message payload on the All Quiet platform.
3. Click *`Save message`.*

<img className="NewRelic_Finish" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/09.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=55d45c25db13b683619ead642af16a38" width="1963" height="1411" data-path="images/newrelic/09.png" />

### 2.7. Active your workflow

Click `Activate Workflow`. Don't forget this step, otherwise, your workflow won't work!

<img className="NewRelic_Activate" src="https://mintcdn.com/allquiet/5UzAOeL8FbDismHi/images/newrelic/10.png?fit=max&auto=format&n=5UzAOeL8FbDismHi&q=85&s=95051eef1e0dd5adae1c0f824e029fa3" width="1513" height="1267" data-path="images/newrelic/10.png" />

## 3. Test the New Relic notification message payload

You're almost done. 🥳 You can now test how New Relic's palyoad maps to your All Quiet incident:

### 3.1 Load New Relic Payload

Go back to your All Quiet New Relic integration that you've created in [step 1.2.](integrations/inbound/newrelic#1-2-select-new-relic-for-the-integrations-type)

1. You will find the test notification payload New Relic sent to All Quiet.
2. With the our `Mapping` engine, you can transform New Relic alerts in any type of All Quiet incident that works for you.
3. Take a look at the incident preview at the bottom. It should be correctly mapped from New Relic's test notification.

<img className="NewRelic_Load" src="https://mintcdn.com/allquiet/wy2LeWs8PEqlTNOC/images/newrelic/11.png?fit=max&auto=format&n=wy2LeWs8PEqlTNOC&q=85&s=4a4824857010a033480ca32f8bc880e1" width="2169" height="2208" data-path="images/newrelic/11.png" />

<Check> Webhook integration with New Relic is now successfully configured on All Quiet, enhancing incident response efficiency.</Check>

### 3.2 Adjust Payload Mapping

Looking to customize the fields of your incidents by adjusting the pre-built payload mapping? Simply head over to the “Payload” tab within your integration and make the necessary edits to the mapping. For detailed guidance, you may check out our [payload mapping documentation](/essentials/inbound#how-does-attribute-mapping-work).

<Tip>Using our Terraform provider? [Download](https://allquiet.app/api/integrations/terraform/default/NewRelic.tf) the default mapping of the `allquiet_integration_mapping` resource for the New Relic integration. Simply copy the syntax to your .tf file and tailor the resource to your team's needs!</Tip>
