Docs
Integrations

New Relic

New Relic gives CodeBeast a live view of your services. Once connected, Chat, tasks and Beastmates can look up latency, errors, entities and open alert issues — without anyone pasting dashboards into a thread.

The API key stays with CodeBeast. It never reaches the agent's machine.

New Relic does not start Board tasks by itself. Use it as a read source, or wake a Beastmate when an alert fires (see Wake a Beastmate from an alert).

Connect New Relic Admin only

Only org admins can connect or change New Relic.

  1. In New Relic, copy the Account ID from the account picker (for example Account 1234567) or from Administration → Account settings.
  2. Create a key: Administration → API keys → Create → User. Prefer read-only. The key starts with NRAK-.
  3. Note your region: US (one.newrelic.com) or EU (one.eu.newrelic.com).
  4. In CodeBeast, open Integrations → New Relic and click Connect New Relic.
  5. Enter the Account ID and User API key, choose the region, optionally set a display name and which repositories may use it, then click Connect.
  6. Press Test. You should see the account name.
Heads up

Do not use a License or Insert key. Those send data into New Relic. CodeBeast only needs to read.

To add another account, use Connect another account. Connecting the same Account ID again replaces the key on that card.

Card settings

SettingWhat it does
AccountShows the Account ID and region (US or EU).
RepositoriesAll or Only selected. Agents only use this connection on repos in scope.
TestChecks that the key still works.
Replace credentialPaste a new User API key without removing the card.

What agents can do

On repos in scope — in Chat, during tasks, and on Beastmates that include New Relic under Access — agents can:

  • Run NRQL
  • Query logs
  • List recent errors
  • Search and open entities
  • List and open alert issues

Everything is read-only.

For best results, use the exact app or entity name from New Relic. Prefer listing recent errors or searching entities over inventing custom NRQL when a simpler query will do.

Note

Open alert issues only appear after a New Relic alert condition has fired. Log lines that say ERROR are not the same as Issues & activity.

Wake a Beastmate from an alert

CodeBeast does not receive New Relic pushes directly. To wake a bot when an alert opens:

  1. Open the Beastmate → Webhooks and create a webhook. See Webhooks.
  2. In New Relic, point a notification destination or workflow at that URL.
Tip

The webhook body can be any JSON shape — the bot reads it as the request. Include the entity or service name, severity and a New Relic link in the notification payload so the bot can act without asking which service fired.

API Monitor (Pulse) is built for standing health checks. Bug Bot (Spot) can also use New Relic while reproducing a bug report.

Troubleshooting

SymptomWhat to check
Connect or Test failsUse a User key (NRAK-…), the matching region, the correct Account ID, and a fresh key. License/Insert keys will not work.
Key works but account is missingWrong Account ID, or that key cannot see the account.
Chat finds no errors, but New Relic shows themApp name spelling, or the wrong event type. Ask for "list recent errors for \<exact name\>" or "query ERROR logs".
No open alert issues, but logs show ERRORLogs ≠ alert issues. Create an alert that fires, then check Issues & activity again.
Agents never call New RelicThe repo is outside Repositories, or the Beastmate's Access step did not include New Relic.
Card shows Needs reconnect or Needs new credentialThe key was rejected or revoked. Use Replace credential, or connect the same Account ID again.