How we used DORA metrics to boost deployments, increase automation and more
Tags: devops, leadership, agile
Published: 2022-02-28 16:09:25

![North Star Metrics](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eb5jjncn1n1ekmxpmlni.png)
 

In 2021, I started wondering how I could measure the overall improvements in performance in the engineering department. We were in the early stages of a program of work called North Star. North Star was all about making engineering capability more efficient and flexible in responding to the business needs.

After researching various options, we decided on the [DORA metrics](https://cloud.google.com/blog/products/devops-sre/using-the-four-keys-to-measure-your-devops-performance). They provided us with all the necessary insights to track our success, and benchmark ourselves against a definition of good.

**What is DORA?**

DORA is the acronym for the DevOps Research and Assessment group: they’ve surveyed more than 50,000 technical professionals worldwide to better understand how the technical practices, cultural norms, and management approach affect organisational performance.

(Take a dive into the [latest DORA Report](https://cloud.google.com/devops/state-of-devops) and in the book that summarizes the findings: [Accelerate](https://www.amazon.co.uk/Accelerate-Software-Performing-Technology-Organizations/dp/1942788339/ref=sr_1_3?keywords=Accelerate-Building-Performing-Technology-Organizations&qid=1645105665&sr=8-3)).

**What are the metrics we are using?**

* **Cycle Time** - Time between the first commit on a merge request to master and production deployment
&nbsp;

* **Deployment Frequency** - Deployment Frequency helps identify the rate at which you are delivering new business value to your customers. Smaller deployments have less risk of going wrong and provide an opportunity to deliver value to your customers in shorter iterations, allowing you to learn quicker.
&nbsp;

* **Change Failure Rate** - For the primary application or service you work on, what percentage of changes to production or released to users result in degraded service (e.g., lead to service impairment or service outage) and subsequently require remediation (e.g., require a hotfix, rollback, fix forward, patch)
&nbsp;

* **Throughput (Detecting Burnout)** - Throughput gives us a sense of the team's bandwidth. It gives us a picture into how much work we can typically accomplish. Teams should aim for consistent throughput.
&nbsp;

**How do we understand the metrics?**

* **Cycle Time** - Reducing amount of blockers for developers
&nbsp;

* **Deployment Frequency** - Limiting amount of code going to production at once (limited batch size)
&nbsp;

* **Change Failure Rate** - Improving quality focus, part of our [Continuous Testing Strategy](https://dev.to/ghostinthewire5/implementing-a-continuous-testing-strategy-for-devops-121l).
&nbsp;

* **Throughput (Detecting Burnout)** - [Paying back technical debt](https://dev.to/ghostinthewire5/so-what-are-we-doing-about-technical-debt--29m3) & introducing [automation](https://dev.to/ghostinthewire5/how-firstport-are-leveraging-the-power-of-open-source-to-drive-continuous-code-quality-fd0) to reduce toil
&nbsp;

**Following the rules of lean:**

* Optimize Work In Progress (**Cycle Time**)
&nbsp;

* Value is only released to production, once it leaves the factory floor (**Deployment Frequency**)
&nbsp;

* Practice [Kaizen](https://en.wikipedia.org/wiki/Kaizen) (**Change Failure Rate**)
&nbsp;

* Invest in SRE/DevOps automation (**Throughput (Detecting Burnout)**)
&nbsp;

**How are the metrics used internally ?**

The dashboard is regularly reviewed by the senior engineering management and are discussed and reviewed in our monthly town hall meeting, and our fortnightly Ops Review. Each team is encouraged to reflect on the metrics as they plan their work, and consider improvements they could introduce.

The metrics also influence the decisions and prioritisation. Just as importantly, they help us to transform our company culture.

**In terms of changes measured:**

![Cycle Time](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pib3tjli7lhamhc60aun.png)

* **Cycle Time** as we have not measured it before, the main benefit for us is understanding what we need to improve. In 2021 this actually increased to 18.5 days (due to reasons) but we are currently in the area of 8 days on average for 2022.
&nbsp;

![Deployment Frequency](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8itdh2ioz6645vck31zx.png)
* **Deployment Frequency** was improved from once a week to once every 1.4 days (x5 Increase).
&nbsp;

![Change Failure Rate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pj19ba4ij7lo7sydmkl6.png) 
* **Change Failure Rate** was about 8% before we started, it is now oscillating between ~3-4%. (50% Decrease)
&nbsp;

![Throughput](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aq6rljv9i8ccb5mkibk8.png)
 
* **Throughput (Detecting Burnout)** as with Cycle Time we have not measured it before, the main benefit for us is understanding what we need to improve. The throughput per developer per week increased by 93% - however we know why this is (new ways of working, additional code bases etc). We are still keeping a close eye on this to ensure it returns to healthy levels, which so far in 2022, it is!
&nbsp;

**The main cultural changes were:**

* We have automated the majority of our deployment pipelines (Using [GitHub Actions](https://dev.to/ghostinthewire5/how-firstport-execute-a-database-as-code-strategy-using-dbup-terraform-github-actions-2b58)).
&nbsp;

* We have moved the bulk of our infrastructure management to a standardised Infrastructure as Code (mainly [Terraform](https://dev.to/ghostinthewire5/how-firstport-manage-github-using-code-stored-in-github-41f6)).
&nbsp;

* We have improved our [Quality Assurance & Testing](https://dev.to/ghostinthewire5/implementing-a-continuous-testing-strategy-for-devops-121l) process.
&nbsp;

We hold the ambition to join the elite performing group of organisations as defined by the State of DevOps report. Each day brings us closer to that goal.
&nbsp;

**What are our future plans?**

On the technical side, we are working to improve automation of the CI/CD pipelines, testing process & Observability. 

On the DevOps/DORA culture side, we are providing regular talks and training to wider audiences (not only engineering), to establish DORA as a reference point in future product development. We are also making it a key point of our new consolidated engineering strategy.

I’ve found the DORA metrics helped us improve our software development and delivery processes. With these findings, organisations can make informed adjustments in their process workflows, automation, team composition, tools, and more. I recommend you try this in your organisation too.

Further reading:

* [The Phonenix Project](https://www.amazon.co.uk/Phoenix-Project-Devops-Helping-Business/dp/1942788290/ref=sr_1_1?crid=3DI133RHO9CSD&keywords=the+phoenix+project&qid=1645110334&sprefix=the+phoenix+project%2Caps%2C144&sr=8-1) by Gene Kim, Kevin Behr and George Spafford
&nbsp;

* [The Goal](https://www.amazon.co.uk/Goal-Process-Ongoing-Improvement/dp/0566086654/ref=sr_1_1?crid=29JBJD9O8WTDO&keywords=the+goal&qid=1645110393&sprefix=the+goal%2Caps%2C125&sr=8-1): A Process of Ongoing Improvement by Eliyahu Goldratt and Jeff Cox
&nbsp;

* [The Unicorn Project](https://www.amazon.co.uk/Unicorn-Project-Disruption-Redshirts-Overthrowing/dp/1942788762/ref=sr_1_1?crid=1RLFHFMXHNVQ2&keywords=the+unicorn+project&qid=1645110428&sprefix=the+unicorn+projec%2Caps%2C98&sr=8-1) by Gene Kim et al
&nbsp;

* [The DevOps Handbook](https://www.amazon.co.uk/Devops-Handbook-World-Class-Reliability-Organizations/dp/1950508404/ref=sr_1_1?crid=10337Z8FXTW4G&keywords=the+devops+handbook&qid=1645111014&sprefix=the+devops+handbook%2Caps%2C98&sr=8-1) by Patrick Debois et al

**Important** 😸

I regularly post useful content related to Azure, DevOps and Engineering on Twitter. You should consider following me on [Twitter](https://twitter.com/GhostInTheWire5)