New Relic annotations
Annotations overlay event markers on your Grafana dashboard graphs, helping you correlate changes and incidents with metric data. The New Relic data source supports three annotation query types: Deployments, Alerts, and Insights.
Before you begin
- Configure the New Relic data source.
- Familiarize yourself with Grafana annotations.
Create an annotation query
To add a New Relic annotation to your dashboard:
- Navigate to your dashboard and click Dashboard settings (gear icon).
- Click Annotations in the left-side menu.
- Click Add annotation query.
- Select the New Relic data source.
- Choose a Query Type and configure the fields.
- Click Apply.
Query types
The annotation editor supports the following query types.
Deployments
The Deployments query type overlays application deployment markers on your graphs.
Alerts
The Alerts query type overlays New Relic alert events on your graphs. You can filter by product, event type, entity type, and entity ID.
Insights
The Insights query type lets you use a raw NRQL query to generate annotation events. This provides the most flexibility for custom annotation data.
Enter your NRQL query in the query editor. The $__timeFilter macro is supported.
Mark a deployment event:
SELECT timestamp, description FROM NrAuditEvent WHERE actionIdentifier = 'dashboard.update' $__timeFilterAnnotate application error spikes:
SELECT count(*) FROM TransactionError WHERE appName = 'my-app' $__timeFilter TIMESERIESShow Synthetics monitor failures:
SELECT timestamp, monitorName, result FROM SyntheticCheck WHERE result = 'FAILED' $__timeFilterDisplay configuration changes:
SELECT timestamp, actionIdentifier, actorEmail FROM NrAuditEvent $__timeFilter

