Skip to main content
New Relic logo

Overview

Add New Relic to any ModuleX agent or workflow. Query observability data and record deployments in New Relic. Run NRQL queries, search monitored entities, fetch entity details, and create deployment change events through New Relic’s NerdGraph GraphQL API (api.newrelic.com/graphql, or api.eu.newrelic.com/graphql for the EU region).
Categories: Monitoring & Observability · Monitoring · Observability · Auth: API Key · Actions: 4

Authentication

API Key Authentication

Authenticate using your New Relic user API key
1

Step 1

Sign in to New Relic at https://one.newrelic.com
2

Step 2

Open the user menu and go to ‘API keys’
3

Step 3

Create a new ‘User’ key (its value starts with ‘NRAK-’)
4

Step 4

Paste the API key below

Required Credentials

Available Actions

Parameters

integer
required
New Relic account ID to query
string
required
NRQL query to execute
string
New Relic data center region: ‘us’ (default) or ‘eu’ (Default: us)
integer
Optional query timeout in seconds

Response

Parameters

string
required
Entity search query, e.g. name like “api” or domainType = “APM-APPLICATION”
string
New Relic data center region: ‘us’ (default) or ‘eu’ (Default: us)
string
Pagination cursor from a previous entity search

Response

Parameters

string
required
Entity GUID
string
New Relic data center region: ‘us’ (default) or ‘eu’ (Default: us)

Response

Parameters

string
required
GUID of the entity associated with the deployment
string
required
Deployment version, release name, or commit SHA
string
New Relic data center region: ‘us’ (default) or ‘eu’ (Default: us)
string
Short description of the deployment
string
Longer deployment description
string
Deployment changelog text or URL
string
Commit SHA or identifier associated with the deployment
URL to the deployment, build, or release details
string
User or automation that performed the deployment
string
Optional group ID to correlate related changes
object
Custom change event metadata as key-value pairs with string, number, or boolean values
string
Deployment type: ‘basic’, ‘blue green’, ‘canary’, ‘rolling’, or ‘shadow’ (Default: basic)
integer
Event timestamp in milliseconds since Unix epoch

Response

Limits & Quotas

  • All actions hit the NerdGraph GraphQL endpoint; New Relic enforces account-level NerdGraph rate limits (per-minute request and query-cost budgets). Heavy or unbounded NRQL queries may be throttled or time out.
  • nrql_query accepts an optional timeout (seconds) forwarded to NerdGraph; the HTTP client itself caps each call at 90 seconds.
  • create_deployment_event custom attribute names must be letters, numbers, and underscores (not starting with a number), must not contain ., and must avoid New Relic’s reserved NRQL keywords; invalid names are rejected before the call. A supplied timestamp must be within one day of the current time per New Relic’s change tracking rules.
  • Error model: non-2xx responses, GraphQL errors, and timeouts are caught and returned as success=False + error rather than raising.

Grafana

Sentry

CrowdStrike