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 keyStep 1
Sign in to New Relic at https://one.newrelic.com
Required Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| New Relic User API Key | Your New Relic user API key (starts with ‘NRAK-’) | Yes | NRAK-<your-user-key> |
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.
search_entities — Search New Relic entities by name, GUID, domain type, tags, or reporting state.
search_entities — Search New Relic entities by name, GUID, domain type, tags, or reporting state.
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
GUID of the entity associated with the deployment
Deployment version, release name, or commit SHA
New Relic data center region: ‘us’ (default) or ‘eu’ (Default:
us)Short description of the deployment
Longer deployment description
Deployment changelog text or URL
Commit SHA or identifier associated with the deployment
URL to the deployment, build, or release details
User or automation that performed the deployment
Optional group ID to correlate related changes
Custom change event metadata as key-value pairs with string, number, or boolean values
Deployment type: ‘basic’, ‘blue green’, ‘canary’, ‘rolling’, or ‘shadow’ (Default:
basic)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.