API referenceConsole
observability
Polylane watches error rate and latency on your busiest New Relic services, picks up alert issues, runs NRQL over your APM, traces and logs, and writes the fix.

Connect

Connect New Relic from the terminal. Pass --help for the flags New Relic accepts.

Terminal
polylane integration connect --type newrelic

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 fieldWhat it unlocks
actor.user, actor.accountsFinds the region and the accounts the key can read.
actor.account.nrqlRuns NRQL for the agent tools and for the service, log, dashboard, and alert condition checks.
actor.entitySearch, actor.entityFinds services, hosts, and dashboards, with their golden signals and relationships.
actor.distributedTracing.traceOpens one distributed trace as a span tree.
actor.account.aiIssuesLists alert issues and their conditions and entities.
actor.account.alertsReads alert policies and NRQL alert conditions.
aiNotificationsCreateDestination, aiNotificationsCreateChannel, aiWorkflowsCreateWorkflowAdds the Polylane webhook destination, channel, and workflow that send every alert issue to Polylane.
alertsPolicyCreate, alertsNrqlConditionStaticCreate, alertsNrqlConditionStaticUpdate, alertsMutingRuleCreate, alertsMutingRuleDelete, aiIssuesAckIssue, aiIssuesResolveIssuenewrelicAlerts 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.
newrelicApiSends 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
Terminal
polylane integration disconnect <id>

Tools

9

Operations agents can perform in threads.

Run Nrql
Run a NRQL query over New Relic logs, metrics, traces and events
Search Entities
Find New Relic services, hosts, monitors and other entities
Get Entity
Read one New Relic entity with its golden signals, relationships and deployments
List Issues
List New Relic alert issues with their conditions, entities and state
List Alert Conditions
List New Relic alert policies and NRQL alert conditions with their thresholds
Dashboards
List New Relic dashboards or read one dashboard's widgets and NRQL
Get Trace
Read one New Relic distributed trace as a span tree with durations and errors
Alerts
Create New Relic alert policies and NRQL conditions, enable or disable a condition, mute or unmute alerts, and acknowledge or close issues
Api
Call the connected New Relic NerdGraph GraphQL API