Overview
Connecting New Relic lets Rootly AI analyze New Relic data during investigations. Once connected, Rootly AI can look up entities, run NRQL queries, inspect alerts and incidents, tail logs, and read golden signals. OAuth is the recommended authentication method. A New Relic user API key (starts withNRAK) is available as a fallback.
Before You Start
You’ll need:- A New Relic user account with access to every account and entity Rootly AI should investigate.
- An Organization Manager who can review Feature Control Manager settings.
- New Relic MCP Server activated in Feature Control Manager.
- Local Clients activated for OAuth connections.
- API keys activated only if you use the API-key fallback.
- Your account’s region — US, Europe, or Japan.
- For the API-key fallback: a New Relic user API key created from API Keys → Create a key → User. The key starts with
NRAK.
Connecting
Open AI & Agents → Connectors and click Connect on the New Relic card.- US / North America — for accounts on
one.newrelic.com. - Europe — for accounts on
one.eu.newrelic.com. - Japan — for accounts on
one.jp.newrelic.com.
Connect With OAuth (Recommended)
Or Use a User API Key
NRAK, and click Connect with API key.Confirm the Connection
What Rootly AI Can Read
Once connected, Rootly AI can query New Relic for:- Entities — services, hosts, applications, and other New Relic entity types in your account.
- NRQL queries — Rootly AI can compose and run NRQL against your data (metrics, events, logs, spans).
- Alerts and alert policies — including current firing state and recent alert history.
- Incidents in New Relic — Rootly AI can correlate its own incident context with any incidents you have open in New Relic.
- Logs — search and inspect log lines matching a query.
- Golden signals and performance metrics — throughput, latency, error rate, saturation across your instrumented services.
During an Incident
“New Relic flagged a golden-metric SLO breach at 2:12pm. Here’s the slowest trace in the window.” Rootly AI pulls New Relic’s entity data, NRQL query results, and alert history correlated with the incident. When a golden metric breaches or an alert fires in the incident’s window, Rootly AI surfaces the exact query and trace in the investigation output.Best Practices
- Prefer OAuth. It avoids distributing a long-lived New Relic user key and supports token refresh through New Relic’s authorization flow.
- If you use the fallback, use a dedicated user API key for Rootly AI. Don’t reuse a personal key that’s already in use elsewhere — it makes rotation, audit, and revocation harder. Name it something obvious like
rootly-aiso it’s easy to find in New Relic’s API keys settings. - Consider a service user for the API key. If your New Relic account supports service users, create one specifically for Rootly AI and issue the API key from that user. This decouples Rootly AI’s access from any individual staff member’s account.
- Rotate fallback API keys on a cadence. New Relic user API keys are long-lived by default. Rotate quarterly (or align with your team’s existing rotation cadence). After rotating, open the New Relic card, expand Use a user API key instead, paste the replacement key, and click Connect with API key. OAuth connections use New Relic’s token refresh flow instead of manual key rotation.
- Match the region carefully. US, Europe, and Japan use separate hosted MCP endpoints. Authorization for one region will not connect to another.
- Test with
/rootly test. After connecting, declare a test incident and verify Rootly AI can query New Relic during the investigation.
Troubleshooting
The OAuth popup does not open
The OAuth popup does not open
New Relic denies the OAuth connection
New Relic denies the OAuth connection
Connect with API key fails with 'Enter a New Relic user API key to connect'
Connect with API key fails with 'Enter a New Relic user API key to connect'
NRAK. Only user API keys (prefix NRAK) are accepted — ingest keys (NRII) and license keys (NRAL) don’t work. Create a new key of the User type from your New Relic account and retry.Connection fails with 'Choose the New Relic endpoint for your account region'
Connection fails with 'Choose the New Relic endpoint for your account region'
one.newrelic.com for US, one.eu.newrelic.com for Europe, or one.jp.newrelic.com for Japan—and select the matching option.Connection succeeds but Rootly AI can't see specific entities or accounts
Connection succeeds but Rootly AI can't see specific entities or accounts
NRQL queries return errors from Rootly AI
NRQL queries return errors from Rootly AI
After rotating the API key, queries started failing
After rotating the API key, queries started failing
Region setting was wrong; how do I fix it without losing the connection?
Region setting was wrong; how do I fix it without losing the connection?
Frequently Asked Questions
Can I connect multiple New Relic accounts?
Can I connect multiple New Relic accounts?
What's the difference between the regional endpoints?
What's the difference between the regional endpoints?
Does Rootly cache New Relic data?
Does Rootly cache New Relic data?
Can I audit what Rootly AI has queried in New Relic?
Can I audit what Rootly AI has queried in New Relic?
Does the integration count against New Relic query quotas?
Does the integration count against New Relic query quotas?