DEV Community

Cover image for ๐Ÿ“Š Calculating DORA Metrics - Deployment Frequency
Lorna Watson
Lorna Watson

Posted on โ€ข Edited on

4 2

๐Ÿ“Š Calculating DORA Metrics - Deployment Frequency

The easiest metric to calculate - get a list of project deployments by environment and then group by date format(s) i.e. by day, by month and by year; and finally to calculate the throughput % score which is essentially:

throughput % = (count of deployments by environment * count of all deployments) * 100

I've parsed the data into a specific format for my charts in the frontend. Check out my repo here.

Result:

{
    "score": 4.16,
    "result": [
        {
            "title": "By Day", 
            "content": [
                {
                    "name": "29 Aug 21",
                    "value": 2
                },
                {
                    "name": "10 Sep 21",
                    "value": 2
                }
            ],
            "average": 2
        },
        {
            "title": "By Month", 
            "content": [
                {
                    "name": "Aug 21",
                    "value": 2
                },
                {
                    "name": "Sep 21",
                    "value": 2
                }
            ],
            "average": 2
        },
        {
            "title": "By Year", 
            "content": [
                {
                    "name": "21",
                    "value": 4
                }
            ],
            "average": null
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode

Thanks for reading!

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Sentry image

See why 4M developers consider Sentry, โ€œnot bad.โ€

Fixing code doesnโ€™t have to be the worst part of your day. Learn how Sentry can help.

Learn more

๐Ÿ‘‹ Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Communityโ€”every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple โ€œthank youโ€ goes a long wayโ€”express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay