Cortex connects to many third-party vendors whose system interfaces frequently change. As a result, integration behavior or configuration steps may shift without notice. If you encounter unexpected issues, check with your system administrator or refer to the vendor’s documentation for the most current information. Additionally, integration sync times vary and are subject to scheduling overrides and timing variance.
- Discover entities and track ownership
- View SLO and monitoring information on entity pages in Cortex
- Embed New Relic dashboards on entity pages in Cortex
- Create Scorecards to drive alignment on projects involving New Relic metrics
How to configure New Relic with Cortex
Prerequisite
Before getting started:- As a full platform user in New Relic, create a New Relic user key.
- New Relic user keys are linked to the account they were created from, so if this account is ever deleted, the integration with Cortex will stop working.
Configure the integration in Cortex
- In Cortex, navigate to the New Relic settings page:
- Click Integrations from the main nav. Search for and select New Relic.
- Click Add configuration.
- Configure the New Relic integration form:
- Account alias: Enter a name for this account.
- Personal key: Enter the user key you generated in New Relic.
- Account ID: Enter the ID for the account that the user key was generated with.
- Use EU region: Optionally enable this toggle to use the EU region of New Relic.
- Click Save.
Cross-account access
After setting up the integration, you will be redirected to the New Relic settings page where you can enable the cross-account access feature. If you have an account that supports subordinate accounts, you can enable this setting to fetch applications and SLOs for all the accounts that are under the configured one.Configure the integration for multiple New Relic accounts↗
The New Relic integration has multi-account support. You can add a configuration for each additional by repeating the process above. Each configuration requires an alias, which Cortex uses to correlate the designated with registrations for various entities. Registrations can also use a default configuration without a listed alias. You can edit aliases and default configurations from the New Relic page in your Cortex settings. Select the edit icon next to a given configuration and toggle Set as default on. If you only have one configuration, it will automatically be set as the default.How to connect Cortex entities to New Relic
Auto discovery
There are two ways to auto-map New Relic applications and services to Cortex entities:- By default, Cortex will use the Cortex tag (e.g.
my-entity) or its name as the “best guess” for New Relic applications. For example, if your Cortex tag ismy-entity, then the corresponding application in New Relic should also bemy-entity. The name is not case-sensitive.- If your New Relic applications don’t cleanly match the Cortex tag or name, you can override this in the Cortex entity descriptor.
- Cortex also supports mapping New Relic applications to Cortex entities via New Relic tagKeys. By default, a Cortex entity will be mapped to a New Relic application or service with New Relic tag key = “service” and tag value = the service’s Cortex tag.
- You can customize the tag key names on the New Relic settings page in Cortex.
Import entities from New Relic
See the Create services documentation for instructions on importing entities.Editing the entity descriptor
APM services New Relic application metrics can be fetched for each entity using application IDs or tags.applications wrapper format is the recommended format, Cortex also supports a flat array:
Instructions to find your Application ID can be found in the New Relic docs. You can also find the Application ID in the URL in New Relic.
You can also find information on finding and managing tags in the New Relic docs.
OpenTelemetry
OpenTelemetry services can be associated with the entity only using tags. For this type of service New Relic doesn’t generate application ID.
Cortex fetches OpenTelemetry data every 5 minutes, but the data refresh may take longer depending on how much data you have.
Embeds
Cortex can also embed dashboards from New Relic.
Learn more about embedding charts in the Adding external docs page.
SLOs
SLO can be fetched for each entity using New Relic entity GUID for respective SLO or associated service. Detailed instructions how to obtain entity GUID can be found in New Relic docs.
Fetched SLO information can be found in the
Operations and Integrations sections of an entity page.
If the alias is not specified, like with the third ID above, Cortex will use the default configuration.
If you use the GUID for a parent service to define the SLOs for a given entity, Cortex will import all SLOs associated with that service.
Using the New Relic integration
View New Relic data on entity pages
When entities are tied to New Relic, SLO and monitoring information appear under the Monitoring section on the overview of the entity details page. More data is available under the Monitoring page in the entity’s sidebar:- Throughput
- Response time
- Error rate
- Apdex target
- Apdex score
- Host count
- Instance count
- Concurrent instance count
Relationship graphs
Dependencies detected from New Relic will appear in Relationship graphs. You can manually sync dependencies in the Relationship Graph.Scorecards and CQL
With the New Relic integration, you can create Scorecard rules and write CQL queries based on New Relic performance metrics. See more examples in the CQL Explorer in Cortex.Application summary
Application summary
Fetch high-level summary data for a given New Relic application.This expression enables you to score entities on reliability metrics:
- Apdex score
- Apdex target
- Concurrent stance count
- Error rate
- GUID
- Host count
- ID
- Instance count
- Name
- Response time
- Throughput
- Type
newrelic.applications()ExampleYou can use this expression in a Scorecard rule to make sure entities’ Apdex score is at least 0.9:New Relic application is set
New Relic application is set
Check if entity has a New Relic application ID set in its entity descriptor.This can be a good companion to other rules that will fail without a defined application ID, like
newrelic.applications().Definition: newrelic (==/!=) nullExampleYou can use this expression in an onboarding Scorecard to make sure that entities have a New Relic application ID set:Raw NRQL query
Raw NRQL query
Execute an arbitrary NRQL query and capture the raw JSON back out.This expression is not inherently tied to a single entity and requires a custom query to pull the specific data what you need. The raw JSON can be parsed using JQ or Open Policy Agent language.Definition: Or you can use this expression in a CQL report to read the timeseries of the
newrelic.rawNrql(query: Text)ExamplesYou can use this expression in a Scorecard measuring performance to make sure that the 95th percentile of latency has been less than 500ms in the last 3 weeks for a given entity:process.cpu.usage metric for the last 30 minutes using NRQL and a New Relic service GUID:SLOs
SLOs
SLOs associated with the entity via ID or tags. You can use this data to check whether an entity has SLOs associated with it and if those SLOs are passing.SLOsFor a project standards Scorecard, you can also use this expression to make sure entities are passing all of their SLOs:
- History
- ID
- Name
- Operation
- Remaining budget
- SLI value
- SLO target
- Source
- Thresholds
- Datum
- Ts
- Name
- Threshold
slosExamplesYou can use SLO data from New Relic to evaluate entities in Scorecards. For an onboarding Scorecard, you can make sure that entities have at least 1 SLO defined:Accessing OpenTelemetry data with CQL and NRQL
Accessing OpenTelemetry data with CQL and NRQL
In Cortex, you can access OpenTelemetry data by incorporating a raw NRQL query into this CQL expression with the associated New Relic GUID.Definition:
newrelic.applications().getOrNull(0)?.guidExampleYou can execute raw NRQL query to collect average http.server.requests in a CQL report:View integration logs
This feature is available in Cortex cloud.

Still need help?↗
The following options are available to get assistance from the Cortex Customer Engineering team:- Email: help@cortex.io, or open a support ticket in the in app Resource Center
- Slack: Users with a connected Slack channel will have a workflow added to their account. From here, you can either @CortexTechnicalSupport or add a
:ticket:reaction to a question in Slack, and the team will respond directly.