nrdb_query: Execute NRQL queries on NRDB (Insights).

Description Usage Arguments Value See Also Examples

Description

This function is a facade on the NRDB REST API. It allows you to execute queries and analyze the results in a data frame.

Usage

1
nrdb_query(account_id, api_key, nrql_query, verbose = F, timeout = 10000)

Arguments

account_id

your New Relic account ID

api_key

your New Relic NRDB (Insights) API key

nrql_query

the NRQL query to execute

verbose

indicates status information to be printed out

timeout

the max time in milliseconds to wait for a response (default: 10,000)

Value

a data frame with the results

See Also

New Relic NRQL REST API

NRQL Query Reference

How to get a NRDB API key

Examples

1
2
    nrdb_query(account_id=-1, api_key='your_nrdb_api_license_key_here',
              nrql_query="SELECT count(*) from PageAction facet name")

bkayser/NewRelicR documentation built on May 12, 2019, 9:27 p.m.