# NewRelic

This guide walks through adding New Relic as a provider in DuploCloud, configuring credentials, creating a scope, and querying New Relic data through the AI agent.

***

## Step 1 — Navigate to the Observability Providers

Go to **AI Admin** → **Providers** → **IT**, then click the **Observability** tab.

![Observability providers list](/files/zjnmcS4UHHyEPnXxrqOP)

***

## Step 2 — Add a New Provider

Click **+ Add**. Fill in the provider details:

* **Name** — a name to identify this provider
* **Type** — select **New Relic**
* **Account ID** — a label to identify this account within DuploCloud

![Add Provider form](/files/K5GiVKMvYBIfmtjppAD5)

Click **Create Provider**. The new provider appears in the Observability list.

![New Relic added to providers list](/files/idUIELJ8YvSlZnZ4efNv)

***

## Step 3 — Add Credentials

The new provider opens on the **Credentials** tab. Click **+ Add** to add a credential. Fill in the credential fields:

* **API\_KEY** — your New Relic User API key
* **ACCOUNT\_ID** — your New Relic account ID
* **REGION** — `US` or `EU` depending on your New Relic account region

> **Where to find these values:** Your API key can be created in New Relic under **Account Settings → API Keys**. Your Account ID is the numeric ID visible in the URL when logged into New Relic (`one.newrelic.com/accounts/XXXXXXX`). The region is shown on your New Relic login page.

![New Relic provider Credentials tab](/files/Ca0r7ppIof8U7sMdxKQr)

![Add Credential form](/files/KHnVWpL4TKT9dGWviIIt)

Click **Create** to save the credential.

***

## Step 4 — Add a Scope

Switch to the **Scope** tab and click **+ Add**. Fill in:

* **Name** — a label for this scope
* **Credential** — select the credential you just created
* **Description** — optional context for the agent

![Add Scope form](/files/W1Ghg1WMn1ks9UGMQYz4)

Click **Create**. The scope appears in the list.

![Scope created](/files/zBDRpAfovQuY0MZBwmGE)

***

## Step 5 — Use New Relic in a Ticket

Go to **AI DevOps** → **HelpDesk** → **Add Ticket**. Select **observability-agent** as the agent and choose your New Relic scope from the scope dropdown.

![Ticket with New Relic scope selected](/files/3Gx7yflIaUVNf9FyjUHf)

Enter your request — for example, asking the agent to check alerts or synthetic monitors for a domain. Click **Create Ticket**.

***

## Step 6 — Agent Queries New Relic

The agent connects to New Relic using the scope credentials, looks up synthetic monitors, alert conditions, and recent violations, and returns a plain-language summary.

![New Relic results — monitor found](/files/qNNhjrqBj9wgrV3i2Z09)

![New Relic results — alert status and summary](/files/dcmiL1z9bZReGyvA2OM0)


---

# 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/getting-started/integrating-providers/newrelic.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.
