New Relic × AGENA

New Relic APM errors →
merged AI pull request

AGENA queries New Relic via NerdGraph, auto-imports new errors per APM entity, runs an AI agent pipeline against the right repo, opens a pull request, and (optionally) writes a deploy marker back when the PR merges. Built-in OWASP-aware reviewer for security-tagged entities.

Start free — connect New RelicSee the dashboard →

The flow, end to end

  1. 1
    Map New Relic entities to repos
    Browse your APM entities in AGENA. For each entity GUID you care about, map it to a repo (GitHub or Azure DevOps).
  2. 2
    Auto-import every 5 minutes
    The AGENA worker queries NerdGraph for new errors per entity. Each error is fingerprinted by (entity, error_class, message) and deduplicated. New ones become tasks with the errors-inbox link.
  3. 3
    Integration Rules tag and route
    Match by entity GUID, entity name, or error class. Route security-tagged entities to the security_developer reviewer.
  4. 4
    AI pipeline runs
    analyzer → planner → developer → reviewer. The reviewer runs OWASP-aware AI review and produces severity + score.
  5. 5
    PR opened on GitHub or Azure DevOps
    Pull request with the patch, AI review, and the New Relic errors-inbox link. Optional: write a New Relic deploy marker when the PR merges.

What you get out of the box

🌐
NerdGraph-powered
Native NerdGraph (GraphQL) integration — entity browser, NRQL error queries, transaction enrichment.
🎯
Per-entity routing
Each APM entity maps to a repo. Multi-entity teams keep their AI fix flow scoped to the right service.
🛡️
OWASP-aware reviewer
security_developer agent runs paranoid review on security-tagged entities.
🇪🇺
EU + US support
Both data center endpoints supported out of the box.
📈
Sample transactions
AGENA enriches each error group with sample transactions (endpoint, method, URI) for context.
🔁
Auto-import per entity
Toggle auto-import on each entity mapping you want monitored. Worker runs every 5 minutes.
📊
Errors inbox link
Each AGENA task links back to the entity errors inbox in one.eu.newrelic.com / one.newrelic.com.
🌍
Multi-repo per entity
A single entity can fan out to multiple repos when one APM entity spans services.

Setup in 5 minutes

  1. Create a User API key in New Relic (one.newrelic.com → API keys).
  2. In AGENA → Integrations → New Relic, paste the key, select US or EU base URL, set your account ID.
  3. Browse your APM entities in AGENA and click Map for each one.
  4. Pick the target repo for each mapping.
  5. Toggle Auto-import on the mappings you want AGENA to watch.

Frequently asked

How does AGENA pull errors from New Relic?

AGENA uses the New Relic NerdGraph API (GraphQL). You configure an entity mapping that ties an APM entity GUID to one of your AGENA repo mappings. Every 5 minutes the worker queries NRQL for new errors on that entity, deduplicates by SHA-256 fingerprint of (entity, error_class, message), and creates an AGENA task with the file:line, transaction context, and the New Relic errors-inbox link.

What scopes does the API key need?

A New Relic User API key with read access to the accounts containing the entities you want to monitor. AGENA only reads — it does not write back to New Relic. Stored encrypted server-side.

Does it work with EU and US data centers?

Yes — set base URL to https://api.newrelic.com/graphql for US or https://api.eu.newrelic.com/graphql for EU. Account ID lives in the integration’s extra config.

How is file/line extracted from a New Relic error?

For PHP errors, AGENA parses the standard error message format /path/to/File.php:123. For other languages, the stack frame is read from the AttributeMap on the error event. If we can’t resolve a precise file:line, the task still imports — the developer agent does its own analysis from the error class + message.

Can I route by entity?

Yes — define an Integration Rule that matches entity GUID or entity name and routes to a specific reviewer agent. Example: entity name contains "billing" → security_developer reviewer + priority critical.

How does this differ from the Sentry integration?

Functionally identical end-to-end (import → AI pipeline → PR → auto-resolve). The mapping shape differs: Sentry maps a project to a repo; New Relic maps an APM entity (GUID) to a repo. You can run both — many teams send web errors to Sentry and backend APM errors to New Relic.

Related
🚨Sentry AI Auto-Fix
Sentry production errors → merged AI pull request in 12 minutes
🧠Cross-Source Insights
"Which deploy caused this bug?" answered in 5 seconds
🟦Azure DevOps AI Bot
Work items → merged AI pull request