# New Relic

![Image 1 of 1](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756479058957.png)
New Relic is a SaaS offering that focuses on performance and availability monitoring. It uses a standardized Apdex (application performance index) score to set and rate application performance across the environment in a unified manner.

#### In New Relic:

Get and record the following details from **New Relic UI**: they will be required later in this procedure.

1. ***api-key*** *:*
    - In your New Relic account, click on the **Account** dropdown at the top right of the page.
    - Click on the **API Keys** tab.
    - Click **Create New API Key**.
    - Select the **Account**.
    - Set the **Key Type** to **User**.
    - Set the Name to **RelyanceAPIAccess**.

    ![5.jpg](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756447754253.jpg)

    ![6.jpg](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756447755149.jpg)
    - Click **Create Key**.
    - From the list of **API Keys** select the drop down and choose **Copy Key**; save the text temporarily for use in later Relyance AI configuration steps.
2. ***product***: Tenant-specific product name that you want to associate with in the integration analysis.

#### In Relyance AI:

1. Login to your Relyance account.
2. Navigate to the **Settings** (bottom-left corner).
3. Select **Integrations**.
4. Search and locate the **New Relic** integration card and click on it.
5. Click on the **Add Connection** button on the top right
6. Provide a meaningful name for the integration and click on the **Add** button
7. In the **Overview** section, select the integration features you wish to enable for the integration, review the **Scope and Permission**, and **Endpoint** details and click on **Continue**. **Note:** For more details, see [Integration Features](/docs/introduction-to-relyance-ai/integration-features/)\
![Screenshot 2025-11-04 110319.png](https://assets.relyanceuat.xyz/images/docs/34756479071117/40850254963213.png)
8. In the **Connection** section, provide the appropriate values and click on **Continue**,\
![Screenshot](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756447757069.png)
9. In the Authentication section, edit the JSON file in the window using the values recorded from New Relic earlier.\
![Screenshot](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756479065229.png)
10. Review the configuration summary from the Completion section and click on Finish.\
![Screenshot](https://assets.relyanceuat.xyz/images/docs/34756479071117/34756447759757.png)
11. Confirm the integration Status reflects Connected

The **Authentication** step asks for:

- **Account Details**: Add details about the New Relic accounts; required; a JSON value; the field is pre-filled with the shape to complete.

<!-- auth-methods:begin (generated from the integration catalog; do not hand-edit) -->

## Authentication methods and fields

Pick one of these under **Authentication Method** on the connection wizard's **Authentication** step. This table is generated from the integration catalog, so it always matches what the form actually asks for.

| Method | Required | Optional |
| --- | --- | --- |
| **Custom** | `Account Details` | — |

<!-- auth-methods:end -->

<!-- terraform-examples:begin (generated from the integration catalog; do not hand-edit) -->

## Manage this integration with Terraform

Connections for this integration can be managed as code with the [Relyance Terraform provider](https://registry.terraform.io/providers/Relyance/relyance/latest). Non-secret fields go in `auth.params`; secret fields go in `auth.secrets_wo`, which is write-only — never stored in Terraform state. Rotate secrets by bumping `auth.secrets_wo_version`.

```hcl
resource "relyance_integration_connection" "newrelic" {
  vendor = "newrelic"
  name   = "<your connection name>"

  auth = {
    method = "account-credentials"
    params = {
      accounts = jsonencode([
        {
          api-key = ""
          newrelic-url = "https://api.newrelic.com"
          product = ""
        }
      ])
      data_storage_location = "us"
    }
  }

  scans = { "data-inspection" = { enabled = true } }
}
```

<!-- terraform-examples:end -->
