Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.08 KB

newrelic_nrql_query.md

File metadata and controls

45 lines (30 loc) · 1.08 KB

newrelic nrql query

Execute a NRQL query to New Relic

Synopsis

Execute a NRQL query to New Relic

The query command requires the --query flag which represents a NRQL query string. This command requires the --accountId flag, which specifies the account to issue the query against.

newrelic nrql query [flags]

Examples

newrelic nrql query --accountId 12345678 --query 'SELECT count(*) FROM Transaction TIMESERIES'

Options

  -h, --help           help for query
  -q, --query string   the NRQL query you want to execute

Options inherited from parent commands

  -a, --accountId int    the account ID to use. Can be overridden by setting NEW_RELIC_ACCOUNT_ID
      --debug            debug level logging
      --format string    output text format [JSON, Text, YAML] (default "JSON")
      --plain            output compact text
      --profile string   the authentication profile to use
      --trace            trace level logging

SEE ALSO

  • newrelic nrql - Commands for interacting with the New Relic Database