New Relic
Connect
Connect New Relic from the terminal. Pass --help for the flags New Relic accepts.
polylane integration connect --type newrelicA User key from the API keys page in New Relic, created by a user with access to the account you want to connect.
Connect your New Relic account with a User key.
- In New Relic API keys, click Create a key, choose the User key type, and copy the NRAK- value.
- Paste the key into Polylane. Polylane checks it and finds the region and the accounts the key can read. If the key can read more than one account, pick the one to connect.
Polylane encrypts the key before it stores it, and the agent never sees it.
On connect, Polylane adds a webhook destination, a channel, and a workflow, all named "Polylane", to the account. Through them, every New Relic alert issue opens an issue in Polylane.
How it works
Alert issues start investigations
The Polylane workflow sends every alert issue of the account to Polylane when the issue activates, when someone acknowledges it, when its priority changes, and when it closes. An activated issue opens an issue in Polylane, and Polylane triages it. More updates of the same alert issue go to the same Polylane issue. A closed alert issue goes on the issue timeline, and the agent uses it as evidence.
Every hour, Polylane makes sure that the destination, the channel, and the workflow are in the account. It creates again any part that someone deleted.
On the Alerts tab of the integration page, turn automatic triage on or off for the connection or for each NRQL alert condition. Polylane triages an alert issue from several conditions unless triage is off for all of them.
Checks
Polylane watches error rate, p95 latency, and throughput for your busiest services and the volume of your logs. The service checks read Transaction events when the account has APM agents, and server and consumer Span events when it does not. Each check shows all services together and each of the ten busiest services. The log check counts Log records by level. Polylane also makes checks from your NRQL alert conditions and from the widgets of up to 20 dashboards. It also finds signals: queries that watch one business operation, such as a checkout.
The checks run every 30 minutes. Under Anomaly detection on the integration page, change how often they run, or turn them off. Polylane also explores the connection when you connect it and every 12 hours, and opens an issue for each problem that it finds.
Context graph
Every hour, Polylane links the resources that report to the account to a New Relic node in the context graph. An AWS ARN, an EC2 instance ID, or a Kubernetes deployment tag on an entity is an exact match. A service without one of these links only when its name matches exactly one resource.
During an investigation
Run NRQL over New Relic APM, traces, logs, and metrics through Polylane, read entities, alert issues, conditions, and dashboards, and request NerdGraph changes. Changes require safety review and approval.
Polylane checks the key every six hours. Under Credentials on the integration page, verify the saved key or replace it with a key that reads the same account.
NerdGraph fields
Polylane uses these NerdGraph fields:
| NerdGraph field | What it unlocks |
|---|---|
actor.user, actor.accounts | Finds the region and the accounts the key can read. |
actor.account.nrql | Runs NRQL for the agent tools and for the service, log, dashboard, and alert condition checks. |
actor.entitySearch, actor.entity | Finds services, hosts, and dashboards, with their golden signals and relationships. |
actor.distributedTracing.trace | Opens one distributed trace as a span tree. |
actor.account.aiIssues | Lists alert issues and their conditions and entities. |
actor.account.alerts | Reads alert policies and NRQL alert conditions. |
aiNotificationsCreateDestination, aiNotificationsCreateChannel, aiWorkflowsCreateWorkflow | Adds the Polylane webhook destination, channel, and workflow that send every alert issue to Polylane. |
alertsPolicyCreate, alertsNrqlConditionStaticCreate, alertsNrqlConditionStaticUpdate, alertsMutingRuleCreate, alertsMutingRuleDelete, aiIssuesAckIssue, aiIssuesResolveIssue | newrelicAlerts creates alert policies and conditions, turns conditions on or off, mutes and unmutes alerts, and acknowledges or closes issues, each after safety review and approval. |
newrelicApi | Sends any NerdGraph query. Mutations require safety review and approval. API keys, users, and cloud account links are not available. |
Disconnecting
Disconnecting removes the Polylane workflow, channel, and webhook destination from the account and leaves the User key in New Relic. Delete it on the API keys page in New Relic.
If a workflow also sends to your own channels, disconnecting removes only the Polylane channel from that workflow. Disconnecting does not delete your channels.
Disconnect
Disconnecting stops every sync and check and deletes the credentials Polylane held. Polylane removes what New Relic's API lets it remove. The following stays until you remove it yourself:
- New Relic User key
polylane integration disconnect <id>Tools
9Operations agents can perform in threads.