Pour le moment, cette page n'est disponible qu'en anglais.

In our previous blog, we explored the essence of DORA metrics, established by Google’s DevOps Research and Assessment (DORA) team, and discussed their role in improving software delivery performance.

This follow-up dives into how New Relic Scorecards can help you calculate and track DORA metrics automatically—turning your raw engineering and operations data into actionable insights that fuel continuous improvement. Check Scorecards documentation here.

Group DORA Metrics by service ownership

Group DORA Metrics by service ownership and teams.

DORA Metrics Recap

DORA metrics evaluate DevOps performance through four dimensions:

  1. Deployment Frequency – How often you deploy code to production.
  2. Lead Time for Changes – How long it takes for committed code to reach production.
  3. Change Failure Rate – The percentage of deployments that cause incidents or require fixes.
  4. Mean Time to Recovery (MTTR) – How long it takes to restore service after an incident.

Using New Relic Scorecards for DORA Metrics

New Relic Scorecards provide a structured way to calculate DORA metrics directly from your existing development and operations data.

Getting started is simple:

  1. Navigate to All Capabilities → Scorecards.
  2. Click Create Scorecard → Use a Template.
  3. Select DORA Metrics and follow the creation flow.

If you already have the required data in New Relic, the template can produce a fully functional DORA Scorecard with a single click.

Cerate a scorecard with a template

Use a template to create a scorecard.

Data Prerequisites

DORA metrics are only as accurate as the data they use. With New Relic, the easiest way to provide this data is through the following integrations and products:

Let’s break down each Scorecard rule, its NRQL query, and how to get the right data.

1. Deployment Frequency - NRQL Query

Data Source - The Deployment Frequency rule requires deployment data. To capture this, use New Relic Change Tracking. You can integrate Change Tracking with your CI/CD pipeline to send deployment events to New Relic via the NerdGraph API.

This generates the Deployment event that will contain your deployment data which will be used in the rule, you can query the event using: 

FROM Deployment SELECT * SINCE last week

💡 Pro Tip: You need to prepare your CI/CD pipeline to pass the deployed entity (service) GUID and the Commit SHA to the New Relic Change Tracking API. The entity GUID links the deployment to the correct service in New Relic, enabling the calculation of the deployment frequency. The Commit SHA is essential for calculating the Lead Time for Changes. An example here!

2. Lead Time for Changes - NRQL Query

Data Source - The Lead Time for Changes rule requires two data sources:

  1. Deployment data – from Change Tracking (already covered above).

Pull request lifecycle data – from the New Relic GitHub Integration which syncs your repositories, teams, and pull requests data.

It produces the GitHubPullRequest event in your organization storage account, you can query the event to find your new PRs made after setting up the integration using:

FROM GitHubPullRequest SELECT * SINCE last week

💡 Pro Tip: Once your PR is merged a new event will be pushed to the GitHubPullRequest event with the commitSha attribute that will be used to merge on the Deployment event to calculate the time took from the moment the first commit was made until the deployment.

3. Mean Time to Recovery (MTTR) - NRQL Query

Data Source - The MTTR rule needs incident lifecycle data—specifically, incident start and resolution times. Use New Relic Issues & Incident Management to declare and track incidents. When an incident occurs, the system records an NrAiIncident event that the rule uses to average the incident duration to determine your average recovery speed.

4. Change Failure Rate - NRQL Query

Data Source - The Change Failure Rate rule measures the percentage of deployments that result in fixes or rollbacks - which means you have a deployment that caused an incident or a problem in your environment. 

You should already have deployment data from Change Tracking. To make this rule work, you must send a custom attribute isHotfixOrRollback (or any custom attribute you define) attribute in your deployment API call. This flag enables the query to separate normal deployments from those which caused production problems.

💡 Pro Tip: Automate this flag in your CI/CD by tagging rollback/hotfix branches or setting variables in deployment jobs. Additionally, if you would like to use any other attribute don’t forget to change the rule query to reflect that.

DORA by Team

If you use New Relic Teams, you can easily group DORA metrics by service ownership.

Open your DORA Scorecard, select Group by → Team, and instantly see deployment, change, and recovery performance for each team.

Calculate and track DORA metrics automatically.

Calculate and track DORA metrics automatically.

Customizing Thresholds and Data Sources

The provided queries follow Google’s High Performance thresholds, but they’re fully editable. Open any rule in your Scorecard, click Edit Rule, and adjust the NRQL thresholds to fit your goals. Additionally, if you are sending any piece of data outside our integrations or products using a custom event, you can modify the query to change the event that has the data.

Customize Thresholds and Data Sources

Customize Thresholds and Data Sources

New Relic Now Regardez la démo des intégrations agentiques dès aujourd'hui.
Regarder.