Skip to content

Start building

Integration · Developer

AI agents for New Relic

Run NRQL queries, find services, hosts and dashboards, read recent deployments and open alert issues, record a deployment and resolve an issue in New Relic (US or EU data center), through NerdGraph with a user key.

Actions
10
Read
8
Write
2

Actions

What your agents can do in New Relic

10 actions. Each one is a tool your agents can call and a step your workflows can run.

Read 8

Look things up. Nothing changes.

  • Run an NRQL query

    Runs an NRQL query over the account's data (APM transactions, logs, infrastructure, browser, custom events) and returns the rows in data.actor.account.nrql.results, with metadata.

  • Find services, hosts or dashboards

    Finds entities (APM services, browser apps, hosts, synthetic monitors, dashboards, workloads) by part of their name, type and domain, as data.actor.entitySearch.results.entities.

  • Find entities with an entity search query

    Finds entities with New Relic's entity search syntax, for anything the simple search cannot express.

  • Get an entity

    Reads one entity by its GUID (from a search): name, entityType, domain, alertSeverity, whether it is reporting, web address, account and tags, as data.actor.entity.

  • List an entity's deployments

    Lists the deployments recorded for a service (change tracking), as data.actor.entity.deploymentSearch.results.

  • List alert issues

    Lists alert issues (grouped incidents) in an account in one state, ACTIVATED (open, the default), CREATED, DEACTIVATED or CLOSED, from the last 24 hours.

  • List alert policies

    Lists an account's alert policies as data.actor.account.alerts.policiesSearch.policies: each with its id, name and incidentPreference; totalCount and nextCursor page through them.

  • List accounts

    Lists the New Relic accounts the user key can reach, as data.actor.accounts: each with its id and name.

Write 2

Create, change or send.

  • Record a deployment

    Records a deployment marker on a service (change tracking) with a version, and optionally a commit, changelog, description, user, link and deployment type.

  • Resolve an alert issue

    Closes an alert issue by its ID (from "List alert issues"), for example once a fix is confirmed.

A person can approve first

Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything.

Connection

How it connects

Connect it once in the console, then give it to the agents and workflows that need it.

API key

Paste an API key from your New Relic account.

What you enter

  • User key

Settings

  • Data center
  • Account ID

Kept safe

  • Credentials are stored encrypted with your organization's own keys.
  • They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
  • Calls go only to the tool's own servers.

How we protect your data

Ideas

Ideas to start with

Starting points made only from the actions above. Mix them with any other tool your agents can use.

  • 01

    Ask about your New Relic data

    Ask a question in plain words. The agent can run an NRQL query, find services, hosts or dashboards or find entities with an entity search query in New Relic, then answers with what it found.

  • 02

    Let an agent update New Relic

    Have the agent record a deployment or resolve an alert issue in New Relic as part of a larger task. Turn on approval and a person signs off on each change first.

  • 03

    Share what it finds in Slack

    Give one agent New Relic and Slack: it can run an NRQL query in New Relic and post a summary to a Slack channel in the same run.

FAQ

New Relic and MyDeepAgents

Can MyDeepAgents connect to New Relic?

Yes. The New Relic connector has 10 actions: 8 read and 2 make changes. Your agents can call them as tools, and your workflows can run them as steps.

How do I connect New Relic?

Paste an API key from your New Relic account. You'll need: User key. The connection also asks for: Data center and Account ID. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.

Can an agent change data in New Relic without asking?

Only if you let it. Each of the 2 actions that change data can be set to wait for a person's approval before it runs.

Can I use New Relic in workflows as well as agents?

Yes. Every New Relic action also works as a step in a workflow, and the same connection serves your agents and your workflows.

Early access

Put New Relic to work

Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.