Skip to main content

New Relic

Prerequisites​

Before configuring the integration, ensure you have the following from your New Relic account:

  • A User API Key (not a License Key or Ingest Key)
  • Your New Relic Account ID
  • Your account's region (US or EU)

New Relic Integration Configuration​

Navigate to Integrations > Observability tab and select New Relic to open the configuration form.

New Relic in Observability tab

Configuration Fields​

  • Integration Config Name

    • A descriptive name for this integration (e.g., Production New Relic).
    • Used to identify this configuration when multiple New Relic integrations exist.
  • Account Id

    • Select the NudgeBee account to link with this New Relic integration from the dropdown.
  • API Key * (Required)

    • Your New Relic User API Key.
    • To generate one: open New Relic, click your user menu (bottom-left) > API Keys > Create a key > select User as the key type.
    • This key is used to query logs, traces, and metrics via the NerdGraph (GraphQL) API.
  • New Relic Account ID * (Required)

    • Your numeric New Relic Account ID.
    • To find it: click your user menu > Account Settings. The Account ID is displayed at the top, and also appears in the URL (e.g., https://one.newrelic.com/nr1-core?account=1234567).
  • Region * (Required)

    • The data center region of your New Relic account. Select from the dropdown:
      • us — United States datacenter (api.newrelic.com)
      • eu — European Union datacenter (api.eu.newrelic.com)
    • If unsure, check your New Relic login URL: one.newrelic.com = US, one.eu.newrelic.com = EU.
  • Kg Source

    • How NudgeBee builds the knowledge graph from New Relic. nrql (default) aggregates spans with NRQL. nerdgraph reads related entities through NerdGraph, which is richer for OpenTelemetry or eBPF tenants, and falls back to NRQL when it returns nothing.
  • Default Log Provider

    • Enable this to set New Relic as the default source for log queries across NudgeBee.
  • Default Metrics Provider

    • Enable this to set New Relic as the default source for metric queries.
  • Default Traces Provider

    • Enable this to set New Relic as the default source for distributed trace queries.

New Relic configuration form


What Gets Connected​

Once configured, NudgeBee queries your New Relic account using NRQL (New Relic Query Language) via the NerdGraph GraphQL API:

SignalNRQL Event TypeExample
LogsLogSELECT * FROM Log WHERE service.name = 'checkout' SINCE 1 hour ago
TracesSpanSELECT * FROM Span WHERE service.name = 'api-gateway' SINCE 30 minutes ago
MetricsMetricSELECT average(k8s.container.cpuCoresUtilization) FROM Metric TIMESERIES

NudgeBee supports the full range of NRQL operators for filtering: =, !=, LIKE, IN, BETWEEN, >, <, and more.

Credential validation: when you click Test Connection, NudgeBee runs SELECT count(*) FROM Transaction SINCE 1 minute ago against your account to verify the API key, Account ID, and region are correct.


Verify the Integration​

  1. Click Test Connection, then Save. Save stays disabled until the test succeeds.
  2. Navigate to any Kubernetes workload in NudgeBee.
  3. Open the Logs or Traces tab.
  4. Confirm that data from New Relic appears in the query results.

Notes​

  • New Relic traces support a 14-day lookback window (vs. minutes for eBPF-based traces).
  • Log queries are limited to 2000 results per request. Use filters to narrow results.
  • Metric queries support both instant and time-series modes with configurable intervals.
  • Field names from Fluent Bit, Fluentd, and New Relic's own K8s integration are all supported automatically.

Troubleshooting New Relic Integration​

1. 401 Unauthorized: Invalid API Key​

  • Symptom: Connection validation query fails with 401 Unauthorized.
  • Root Causes:
    • Ingest / License Key Provided: A New Relic Ingest Key (used by agents to ship data) was provided instead of a User API Key (used by NerdGraph to query data).
    • Key Revoked: The user who created the API key left the organization or key was deleted.
  • Remediation:
    1. Go to New Relic $\rightarrow$ User Menu (bottom-left) $\rightarrow$ API Keys.
    2. Click Create a key and select User as the key type.
    3. Update the API key in NudgeBee.

2. Region Mismatch / Account Not Found​

  • Symptom: NerdGraph returns Account <ID> does not exist.
  • Root Cause: The New Relic account is in the EU region (api.eu.newrelic.com), but the region was set to us.
  • Remediation: If your New Relic login URL starts with one.eu.newrelic.com, set the Region dropdown to eu.

3. NRQL Query Timed Out​

  • Symptom: Incident investigation logs show NRQL query execution timeout exceeded.
  • Remediation: Narrow the query time window or filter by specific attributes (k8s.podName, service.name) to reduce the data volume scanned in New Relic.

Advanced Settings​

To scope trace queries to one environment per account, or to map field names your pipeline spells differently, see Advanced Settings: default filters and field mapping. New Relic has no default log filter.