> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/analytics-monitoring/new-relic.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# New Relic

New Relic is an observability platform. Manage dashboards, alert policies and conditions, workloads, deployments, entity tags and notifications.

![New Relic logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-1237217d60888e92d4dbd38bd67cdd295b0d7158%2Fnew-relic.png?alt=media)

|                    |                                                                                              |
| ------------------ | -------------------------------------------------------------------------------------------- |
| **Category**       | [Analytics and monitoring](https://docs.fastn.ai/connectors/catalog/analytics-monitoring.md) |
| **Website**        | [newrelic.com](https://newrelic.com)                                                         |
| **Authentication** | API key                                                                                      |
| **Slug**           | `newRelic`                                                                                   |
| **On fastn.ai**    | [Embed New Relic in your product](https://fastn.ai/integrations/new-relic)                   |

## Setup

Your customers enter their API key for New Relic when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect New Relic from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **New Relic**.
2. Select **Connect** on the New Relic card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use New Relic's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Add Tags to Entity</td><td><code>addTagsToEntity</code></td><td>Add one or more tags to an entity via NerdGraph taggingAddTagsToEntity. Pass variables as {guid, tags:[{key, values:[...]}]}.</td></tr><tr><td>Create Alert Policy</td><td><code>createAlertPolicy</code></td><td>Create an alert policy via NerdGraph alertsPolicyCreate. Pass variables as {accountId, policy:{name, incidentPreference}}. incidentPreference is PER_POLICY, PER_CONDITION or PER_CONDITION_AND_TARGET.</td></tr><tr><td>Create Dashboard</td><td><code>createDashboard</code></td><td>Create a dashboard in an account via NerdGraph dashboardCreate. Pass variables as {accountId, dashboard} where dashboard is a DashboardInput (name, permissions, pages with widgets). Returns the new dashboard entity guid.</td></tr><tr><td>Create Deployment</td><td><code>createDeployment</code></td><td>Record a deployment marker for an APM application via the REST API v2. Requires a revision; changelog, description and user are optional.</td></tr><tr><td>Create Notification Destination</td><td><code>createNotificationDestination</code></td><td>Create a notification destination (email, webhook, Slack, etc.) via NerdGraph aiNotificationsCreateDestination. Pass variables as {accountId, destination:{name, type, properties:[{key,value}]}}.</td></tr><tr><td>Create NRQL Alert Condition</td><td><code>createNrqlAlertCondition</code></td><td>Create a static NRQL alert condition on a policy via NerdGraph alertsNrqlConditionStaticCreate. Pass variables as {accountId, policyId, condition} (AlertsNrqlConditionStaticInput: name, enabled, nrql, terms, signal).</td></tr><tr><td>Create Workload</td><td><code>createWorkload</code></td><td>Create a workload (a group of entities) via NerdGraph workloadCreate. Pass variables as {accountId, workload:{name, entityGuids?, entitySearchQueries?}}.</td></tr><tr><td>Delete Alert Condition</td><td><code>deleteAlertCondition</code></td><td>Delete any alert condition (NRQL or other) by id via NerdGraph alertsConditionDelete. Pass variables as {accountId, id}.</td></tr><tr><td>Delete Alert Policy</td><td><code>deleteAlertPolicy</code></td><td>Delete an alert policy by id via NerdGraph alertsPolicyDelete. Pass variables as {accountId, id}. Also removes the policy's conditions.</td></tr><tr><td>Delete Application</td><td><code>deleteApplication</code></td><td>Delete an APM application by id via the REST API v2. The application must not be reporting.</td></tr></tbody></table>

<details>

<summary>View 32 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Delete Dashboard</td><td><code>deleteDashboard</code></td><td>Delete a dashboard by its entity GUID via NerdGraph dashboardDelete. Pass variables as {guid}.</td></tr><tr><td>Delete Deployment</td><td><code>deleteDeployment</code></td><td>Delete a deployment marker from an APM application via the REST API v2.</td></tr><tr><td>Delete Notification Destination</td><td><code>deleteNotificationDestination</code></td><td>Delete a notification destination by id via NerdGraph aiNotificationsDeleteDestination. Pass variables as {accountId, destinationId}.</td></tr><tr><td>Delete Workload</td><td><code>deleteWorkload</code></td><td>Delete a workload by its entity GUID via NerdGraph workloadDelete. Pass variables as {guid}.</td></tr><tr><td>Get Actor Info</td><td><code>getActorInfo</code></td><td>Return the authenticated user together with all New Relic accounts they can access (id and name), via the NerdGraph actor field.</td></tr><tr><td>Get Application</td><td><code>getApplication</code></td><td>Get a single APM application by id via the REST API v2.</td></tr><tr><td>Get Application Metric Data</td><td><code>getApplicationMetricData</code></td><td>Get timeseries metric data for an APM application via the REST API v2. Provide the metric name (names[]) and optional from/to ISO-8601 timestamps and summarize flag.</td></tr><tr><td>Get Current User</td><td><code>getCurrentUser</code></td><td>Return the authenticated user's id, name and email via NerdGraph (actor.user). Use to verify the connection and identify the caller.</td></tr><tr><td>Get Dashboard</td><td><code>getDashboard</code></td><td>Fetch a dashboard's full definition (pages and widgets) by its entity GUID via NerdGraph. Pass variables as {guid}.</td></tr><tr><td>Get Entity</td><td><code>getEntity</code></td><td>Fetch a single New Relic entity by its GUID via NerdGraph. Returns core fields, reporting state and tags. Pass variables as {guid}.</td></tr><tr><td>Get Key Transaction</td><td><code>getKeyTransaction</code></td><td>Get a single key transaction by id via the REST API v2.</td></tr><tr><td>List Alert Conditions (REST)</td><td><code>listAlertConditionsRest</code></td><td>List APM/browser/mobile alert conditions for a policy via the legacy REST API v2 (alerts_conditions). Requires policy_id.</td></tr><tr><td>List Alert Policies</td><td><code>listAlertPolicies</code></td><td>List alert policies in an account via NerdGraph alerts.policiesSearch. Pass variables as {accountId}.</td></tr><tr><td>List Alert Policies (REST)</td><td><code>listAlertPoliciesRest</code></td><td>List alert policies via the legacy REST API v2 (alerts_policies). Supports filter[name] and page query params.</td></tr><tr><td>List Application Metric Names</td><td><code>listApplicationMetrics</code></td><td>List the available metric names for an APM application via the REST API v2. Supports the name query param to filter.</td></tr><tr><td>List Applications</td><td><code>listApplications</code></td><td>List APM applications in the account via the REST API v2. Supports filter[name], filter[ids], filter[language] and page query params.</td></tr><tr><td>List Dashboards</td><td><code>listDashboards</code></td><td>List all dashboards visible to the caller via a NerdGraph entity search for DASHBOARD entities. Returns each dashboard's guid, name, account and permalink.</td></tr><tr><td>List Deployments</td><td><code>listDeployments</code></td><td>List deployment markers recorded for an APM application via the REST API v2.</td></tr><tr><td>List Key Transactions</td><td><code>listKeyTransactions</code></td><td>List key transactions via the REST API v2. Supports filter[name] and page query params.</td></tr><tr><td>List Notification Channels</td><td><code>listNotificationChannels</code></td><td>List notification channels in an account via NerdGraph aiNotifications.channels. Pass variables as {accountId}.</td></tr><tr><td>List Notification Destinations</td><td><code>listNotificationDestinations</code></td><td>List notification destinations in an account via NerdGraph aiNotifications.destinations. Pass variables as {accountId}.</td></tr><tr><td>List NRQL Alert Conditions</td><td><code>listNrqlAlertConditions</code></td><td>List NRQL alert conditions in an account via NerdGraph alerts.nrqlConditionsSearch. Pass variables as {accountId}.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>List users in the account via the REST API v2. Supports filter[email], filter[ids] and page query params.</td></tr><tr><td>List Workloads</td><td><code>listWorkloads</code></td><td>List workloads (collections) in an account via NerdGraph workload.collections. Pass variables as {accountId}.</td></tr><tr><td>Remove Tags from Entity</td><td><code>removeTagsFromEntity</code></td><td>Remove tags (by key) from an entity via NerdGraph taggingDeleteTagFromEntity. Pass variables as {guid, tagKeys:[...]}.</td></tr><tr><td>Run NerdGraph Query</td><td><code>runNerdGraph</code></td><td>Generic NerdGraph (GraphQL) passthrough. Send any query or mutation string plus an optional variables object; returns the raw GraphQL {data, errors} envelope. Use for any NerdGraph operation not covered by a dedicated action.</td></tr><tr><td>Run NRQL Query</td><td><code>runNrqlQuery</code></td><td>Run a NRQL (New Relic Query Language) query against an account and return the result rows. Pass variables as {accountId, nrql}.</td></tr><tr><td>Search Entities</td><td><code>searchEntities</code></td><td>Search New Relic entities (applications, hosts, dashboards, workloads, etc.) using an entity search query string. Pass variables as {query: \"name LIKE 'x' AND type = 'DASHBOARD'\"}.</td></tr><tr><td>Update Alert Policy</td><td><code>updateAlertPolicy</code></td><td>Update an alert policy via NerdGraph alertsPolicyUpdate. Pass variables as {accountId, id, policy:{name, incidentPreference}}.</td></tr><tr><td>Update Application</td><td><code>updateApplication</code></td><td>Update an APM application's name and settings via the REST API v2.</td></tr><tr><td>Update Dashboard</td><td><code>updateDashboard</code></td><td>Replace a dashboard's definition via NerdGraph dashboardUpdate. Pass variables as {guid, dashboard} where dashboard is a full DashboardInput. Overwrites the entire dashboard.</td></tr><tr><td>Update NRQL Alert Condition</td><td><code>updateNrqlAlertCondition</code></td><td>Update a static NRQL alert condition via NerdGraph alertsNrqlConditionStaticUpdate. Pass variables as {accountId, id, condition} (partial AlertsNrqlConditionUpdateStaticInput).</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/analytics-monitoring/new-relic.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
