New Relic

Data SourcePREMIUM

The official New Relic data source from Grafana Labs

Premium plugins, along with support and assistance from the core team behind Grafana, are available with all Grafana subscriptions. Starting at just $80 per month.

Please sign up or log in to get started.

Sign Up

New Relic Data Source

This is a Grafana data source for showing metrics from the New Relic APM (application performance monitoring).


After installing New Relic plugin, go to Datasources in the menu, click on the Add datasource button and then choose New Relic from Type dropdown and fill in a name for the data source (for example New Relic). Add your New Relic's REST API key, which you can generate from INTEGRATIONS -> API keys page in your New Relic account settings.

Data Source config


Query Editor

Query editor is very simple, just select metric source type (Application, Server or Plugin are supported), select needed app, server or component (plugin), then choose metric and value.

query editor

simple graph


New Relic plugin supports advanced alias patterns and special variables. Default alias is $__nr_metric: $__nr_metric_value, but you can rewrite it using these variables:

Variable              Description             Example
$__nr_metric          Metric name             CPU/User time
$__nr_metric_value    Metric values           average_value
$__nr_application     Application name
$__nr_server          Server name
$__nr_component       Plugin name

Combine plain text with variables to set desired alias, for example: Server: $__nr_server Metric: $__nr_metric.


New Relic data source support template variables. You can fetch different type of data for using as template variable values. First, you can get list of available applications, servers or plugins:

applications or applications/[nameFilter] - list of applications
servers or servers/[nameFilter] - list of servers
components or components/[nameFilter] - list of components (plugins)

where [nameFilter] is optional name filter.


Also, you can pull list of available metrics from particular application, server or component. Use these formats:


For example, servers/62535318/metrics/. It isn't so useful to write id's of your apps or servers, so better to combine these endpoints with first type of variables, for example:

Variable       Query
$app           applications
$appMetrics    applications/$app/metrics

By this way you can choose application and get list of metrics in $appMetrics variable.

Multi-value variables support

You can set your variable as multi-value. These variables are supported in Metric and Value fields. So you can select several metrics using one query.

Multi-value variable


Annotations allows to get alert events from New Relic and display it on graphs.

Annotations editor

Select your New Relic data source and set additional filters. Without any filters set all events will be returned. If you want to filter events by Entity ID, better to use template variables because in this case you can select entity name instead of ID. For example, to filter events for particular application create a variable $app which retrieves a list of apps and use it as Entity ID filter.

Install Plugin


  • Grafana ^4.6.0