Enterprise plugins, along with support and assistance from the core team behind Grafana, are available with Grafana Enterprise.
Please sign up or log in to get started.
Sign UpNew Relic Data Source
Features
- Template variables
- Metric names
- Metric values
- Annotations
- Aliasing
- Metric names
- Metric values
- Ad-hoc filters
- Not currently supported
- Alerting
Configuration
- Install.
- Add the data source; filling out the fields for your admin API key, personal API key and account ID.
Usage
Service Types
- Metrics; for querying New Relic APM via New Relic's REST API.
- Insights; for querying New Relic Insights via NRQL.
Aliases
You can combine plain text with the following variables:
Variable | Description | Example value |
---|---|---|
$__nr_metric | Metric name | CPU/User time |
$__nr_metric_value | Metric values | average_value |
…to produce custom output. For example:
Server: $__nr_server Metric: $__nr_metric
Templates and Variables
- Create a template variable for your dashboard.
- Select the "Query" type.
- Select the "New Relic" data source.
- Formulate a query using relative REST API endpoints (excluding file extensions).
List of available applications:
applications
List of available metrics for an application:
applications/{application_id}/metrics
NRQL Macros
In order to improve the writing experience when creating NRQL queries, the editor supports predefined macros:
$__timeFilter
(or[[timeFilter]]
) will interpolate toSINCE <from> UNTIL <to>
based on your dashboard's time range.
Example:
SELECT average(value) FROM $event_template_variable $__timeFilter TIMESERIES
For further hints on how to use macros and template variables, refer to the editor's help section.
Alert Events
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, please use template variables because you will be able to select the entity name instead of ID. For example, to filter events for a particular application, create a variable _$app_
which retrieves a list of apps and uses it as an Entity ID filter.
Deployment Events
Application ID is required field.