New Relic icon

New Relic

Execute NRQL queries via NerdGraph

NRQL → Execute

AI-generated

Summary

Execute a NRQL (New Relic Query Language) query against a specified New Relic account using the New Relic GraphQL API.

Inputs

  • Account ID (required) — The New Relic Account ID to query against.
  • NRQL (required) — The NRQL query string to execute, such as SELECT count(*) FROM Transaction. This must be a valid NRQL statement.

Output shape

a list of JSON objects representing each result row returned by the NRQL query

Each item in the output corresponds to one result row from the NRQL query's result set under 'results'. If the query returns no results or an unexpected format, the full API response is returned. Errors during query execution will cause the node to throw unless configured to continue on failure.

Examples

Example 1: Execute a NRQL to count transactions on a specified account

Specify the 'Account ID' of the New Relic account and the NRQL statement to run, for example SELECT count(*) FROM Transaction. The node returns each resulting row as a JSON item, enabling downstream use in workflows.

Links

Discussion