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 key1
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
nrql_query — Run a NRQL query against a New Relic account using NerdGraph.
nrql_query — Run a NRQL query against a New Relic account using NerdGraph.
get_entity — Fetch a New Relic entity by GUID.
get_entity — Fetch a New Relic entity by GUID.
create_deployment_event — Record a deployment change event in New Relic change tracking.
create_deployment_event — Record a deployment change event in New Relic change tracking.
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
string
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_queryaccepts an optionaltimeout(seconds) forwarded to NerdGraph; the HTTP client itself caps each call at 90 seconds.create_deployment_eventcustom 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 suppliedtimestampmust 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 assuccess=False+errorrather than raising.