Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

DORA Metrics: How Teams Improve Delivery

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

DORA metrics give engineering teams a shared, evidence-based way to measure software delivery performance. By tracking four key indicators—deployment frequency, lead time for changes, change failure rate, and time to restore service—you can identify bottlenecks, set realistic improvement goals, and make data-driven decisions. This guide walks you through using these metrics to improve your delivery process, from initial setup to continuous improvement.

What You'll Need

  • Access to your CI/CD pipeline logs (e.g., Jenkins, GitHub Actions, GitLab CI)
  • An incident management tool or on-call log (e.g., PagerDuty, Opsgenie, or a simple spreadsheet)
  • A version control system (e.g., Git) with commit history
  • A dashboarding tool (e.g., Grafana, Datadog, or a spreadsheet) to visualize trends
  • Team buy-in and a commitment to review metrics regularly

Step-by-Step

  1. Define the metrics clearly. Agree on what each metric means in your context. Deployment frequency is how often you release to production (e.g., per day, per week). Lead time for changes is the time from code commit to successfully running in production. Change failure rate is the percentage of deployments that cause a failure in production. Time to restore service is how long it takes to recover from a production failure (e.g., rollback, hotfix). Write these definitions down and share them with the team.
  2. Set up data collection. Automate as much as possible. For deployment frequency, use your CI/CD tool's API to log every production deployment. For lead time, calculate the difference between commit timestamp and deployment timestamp. For change failure rate, tag deployments that lead to incidents (e.g., via a status check in your incident tool). For time to restore, record the start and end times of each incident. If you can't automate everything, start with manual logs and move to automation later.
  3. Build a simple dashboard. Create a central view of the four metrics. Use a spreadsheet or a BI tool. Show trends over time (weekly or monthly) rather than just raw numbers. For example, a line chart for deployment frequency and a bar chart for change failure rate. This makes it easy to spot patterns and share with stakeholders.
  4. Establish a baseline. Collect data for at least 4–6 weeks before making changes. This gives you a starting point. Calculate the median (not the average) for lead time and time to restore, as these distributions are often skewed. For deployment frequency, use a count per week. For change failure rate, use a percentage of deployments.
  5. Identify bottlenecks. Look at the data to find where time is lost. For example, if lead time is high, check if most time is spent in code review, testing, or deployment. If change failure rate is high, review your testing practices. If time to restore is high, look at your incident response process. Use the metrics to guide discussions, not to blame individuals.
  6. Set improvement goals. Choose one or two metrics to improve at a time. Make goals specific and measurable. For example, “Reduce lead time for changes from 3 days to 1 day in the next quarter.” Ensure the goals are realistic and aligned with business priorities. Avoid trying to improve all four at once—that often leads to no improvement at all.
  7. Implement changes and measure impact. Make targeted changes, such as improving automated testing, breaking work into smaller batches, or simplifying deployment scripts. After each change, continue tracking the metrics. Look for improvements in the trend lines. If a change doesn't help, revert or adjust it.
  8. Review regularly and adjust. Hold a monthly or bi-weekly review meeting. Discuss what the metrics show, what changed, and what to try next. Update your goals as needed. Celebrate wins and learn from failures. The goal is continuous improvement, not hitting a perfect score.

Common Mistakes

  • Comparing teams unfairly. DORA metrics are not meant for cross-team comparison. Different teams have different contexts (e.g., legacy systems vs. greenfield). Use them for self-assessment and improvement.
  • Ignoring the “why” behind the numbers. A high deployment frequency isn't good if it comes with a high change failure rate. Always look at the four metrics together to get the full picture.
  • Gaming the metrics. For example, reducing lead time by skipping code reviews will hurt quality. Make sure changes are sustainable and don't sacrifice other aspects of delivery.
  • Using averages instead of medians. Averages can be skewed by outliers (e.g., a single 10-day outage). Medians give a more accurate sense of the typical experience.
  • Not accounting for manual steps. If you have manual approvals or deployments, include that time in lead time. Otherwise, you're not measuring the real process.

Tips

  • Start small. If you don't have any data, begin by tracking just deployment frequency and change failure rate. Add the other two once you're comfortable.
  • Use automation where possible. Manual data collection is error-prone and time-consuming. Invest in tooling that automatically records deployments and incidents.
  • Focus on trends, not single data points. A one-off spike in change failure rate might be due to a specific incident. Look at the trend over several weeks to see if it's a pattern.
  • Involve the whole team. Share the dashboard with everyone. Make it a team ritual to review metrics together. This builds shared ownership of delivery performance.
  • Align with business outcomes. If you improve lead time, what does that mean for customers? Connect the metrics to business value (e.g., faster time to market) to keep motivation high.
  • Remember that DORA metrics are a means, not an end. They help you improve, but they don't capture everything (e.g., employee satisfaction, customer feedback). Use them alongside other signals.

Troubleshooting

  • Data is inconsistent or missing. If you're manually logging, you may miss entries. Set up reminders or automate collection. If you're using APIs, check for rate limits or missing fields. Validate your data regularly.
  • Metrics don't improve despite changes. You might be measuring the wrong thing. Double-check your definitions. For example, are you counting only production deployments or also staging? Are you including time spent in code review? Also, give changes time to take effect—don't expect instant results.
  • Team pushback. Some team members may feel the metrics are being used to judge them. Address this by emphasizing that the goal is improvement, not evaluation. Involve the team in setting goals and interpreting data.
  • Tooling limitations. If your CI/CD tool doesn't provide all the data, consider using integrations or scripts. For example, you can use webhooks to log deployments to a database. If you can't automate everything, start with manual logs and move to automation later.
  • Outliers skewing the data. Use medians instead of averages. Also, consider excluding extreme outliers (e.g., a multi-day outage) from your trend analysis if they are rare and well-understood.

Frequently Asked Questions

Do we need to track all four DORA metrics?

Not necessarily. Start with the ones that are most relevant to your current challenges. For example, if you're struggling with frequent outages, focus on change failure rate and time to restore. You can add the others later.

How often should we review these metrics?

At least monthly. Weekly reviews can be useful if you're making rapid changes, but be careful not to overreact to short-term fluctuations. A monthly cadence gives you enough data to see meaningful trends.

What is a “good” value for these metrics?

DORA's research categorizes teams into low, medium, high, and elite performers. For example, elite teams deploy on demand (multiple times per day), have lead times of less than one day, and change failure rates of 0-15%. However, these are benchmarks, not targets. Focus on improving your own baseline.

Can we use DORA metrics for a non-software team?

DORA metrics are designed for software delivery. However, the principles of measuring frequency, lead time, failure rate, and recovery time can be adapted to other processes (e.g., marketing campaigns, hardware releases). The key is to define what “deployment” and “failure” mean in your context.

What if our team is just starting with DevOps?

That's fine. DORA metrics can help you establish a baseline and track your progress as you adopt DevOps practices. Start by measuring what you can, even if it's manual. Over time, automate the collection.

How do we handle incidents that are not caused by a deployment?

For change failure rate, only count incidents that are directly caused by a deployment. For time to restore, you can track all incidents, but note in your dashboard whether they were deployment-related. This helps you understand the different causes of downtime.