This package contains utility code for accessing NRDB and Metric Data collected by New Relic.
Load the NewRelicR
package with the following code:
install.packages("devtools")
devtools::install_github("newrelic/NewRelicR")
Refer to the help documentation in the package for details on how to use the methods.
??newrelic
Please report any bugs or suggestions here.
This package was developed by Bill Kayser and New Relic, Inc.
Fix copy/paste error.
Added support for "compare with" clauses in nrdb_query
. This will return a list with
two elements, current
and previous
.
NOTE: Not all combinations of query types using COMPARE WITH
have been tested!
nrql.timestamp
utility functioncheck()
routinesample_events()
since it didn't do a good job of sampling.get_top_transactions
to nrdb_top_transactions
for consistency.get_events
to nrdb_events
.get_events
method to get contiguous chunks of events for a given criteria.get_top_transactions()
rpm_applications()
functionrpm_query()
call. This means it will respect the period
parameter and simply fetch data in chunks to get the resolution you need.sample_events()
which selects a requested number of events near a point in time
which may not be contiguous (hence "sample"). select average(duration), count(*) from Transaction timeseries AUTO
%>%
usagenewrelic_api
helper in favor of passing api keys directly to functionsAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.