Add a New Relic connector
Add a New Relic connector so Harness can fetch metrics through the NerdGraph or Insights Query API for verification.
New Relic is a cloud-based observability platform that collects and analyzes telemetry from applications and infrastructure, including metrics, events, logs, and traces, which you can query using NRQL (New Relic Query Language). Add a New Relic connector in Harness to let your pipelines query your New Relic data. Harness can then use that data in Continuous Verification to compare application behavior before and after a deployment, helping you confirm a release is healthy or trigger a rollback.
Go to Overview for information about all monitoring and logging connectors, such as scopes and delegate selection.
What you will learn from this topic
How to add a New Relic connector to a Harness project.
How to configure the URL, account ID, and API key that Harness uses to authenticate with New Relic.
How to choose the API key for the NerdGraph or Insights Query API.
How to choose the delegates that connect to New Relic and verify the connection.
Before you begin
New Relic account: A New Relic account ID and an API key. Your account's subscription level must be Pro or higher to use New Relic's API. Go to Introduction to New Relic's REST API Explorer in the New Relic documentation for details.
Harness permissions: Permission to create connectors and secrets in Harness.
Add a New Relic connector
You can add a New Relic connector at the project, org, or account scope. This procedure covers the project scope, and the process is the same for org and account scope.
Open your Harness project.
In Project Settings, select Connectors.
Click New Connector, then select New Relic under Monitoring and Logging Systems. The New Relic connector settings appear.
Overview
Configure the identity fields for the connector.
In Name, enter a name for the connector. Harness generates the Id from the name.
Optionally, add a Description and Tags.
Click Continue.

Credentials
Configure the following settings:
In New Relic URL, select the URL of your New Relic API. The dropdown lists the following URLs:
https://insights-api.newrelic.com/https://insights-api.eu.newrelic.com/https://api.newrelic.com/v2/https://api.eu.newrelic.com/v2/
In New Relic Account Id, enter your account ID. To find it, copy the number after
/accounts/in the URL of the New Relic dashboard.In Encrypted API Key, select or create a Harness encrypted text secret that stores the API key for the server.
Click Continue.

If you have trouble connecting to the API, use the guidance for the API you selected.
Delegates Setup
Select one of the following options:
Use any available Delegate: Harness selects an available delegate at runtime.
Only use Delegates with all of the following tags: Enter the tags of the delegates Harness must use with this connector.
The Test Delegate Connectivity list shows the delegates that match your selection. To add a delegate, click Install new Delegate.
Click Save and Continue.

Verify Connection
Click Finish after the connection test succeeds. The connector is listed in Connectors page.
The usage scope of the connector is inherited from the secrets you use in the settings.
Sample YAML
The following example shows a YAML for the New Relic connector created in this topic.
For the full connector YAML schema, including how to skip connector preflight checks, go to Create a connector using YAML.
Next steps
Use delegate selectors: Control which delegates can connect to this connector.
Add a text secret: Store the API key as a Harness secret.
Last updated
Was this helpful?
