Skip to main content

DORA Reports

DORA (DevOps Research Assessment) identified the following key metrics that describe a software development team's performance: Deployment Frequency, Lead Time for Changes, Change Failure Rate, Time to Restore service (MTTR), and Reliability (MTBF).

With SEI, you can use DORA Metrics Insights to examine your organization's DORA metrics. This helps you understand how your organization or team is performing and helps you get an overview of daily, weekly, and monthly trends.

Furthermore, SEI gives you the flexibility to choose the integrations from which you want to derive data, such as issue management, SCM, incident management, and CI/CD tools, as well as the ability to select filters to refine the data used to generate your metrics.

DORA Metrics Reports

Harness SEI provides the following reports for DORA metrics reporting:

Deployment Frequency

The Deployment Frequency report represents how often an organization successfully releases software to production.

To monitor Deployment Frequency, you must create a DORA type Workflow profile and add the Deployment Frequency widget to your Insights.

Workflow profiles determine the integrations to track, the events that mark deployments (such as merged PRs or CI/CD jobs), and the associated Collections. You can modify Workflow profiles according to your team's SDLC process and the parts of the SDLC process you want to monitor (such as only SCM or combined issue management, SCM, and CI/CD). For more information, go to Workflow profile.

Add the Deployment Frequency report

To add the Deployment Frequency widget to Insights:

  1. Go to the Insight where you want to add the widget. Make sure you are in the correct project.
  2. Select Settings, and then select Add Widget.
  3. Select the Deployment Frequency widget.

  1. Configure the widget settings as desired, such as the enable/disable DORA grading and Collection Level Filters.

info

Editing the Collection Level Filters will reflect the changes in the Collection Settings.

  1. Select Next: Place Widget, place the widget on the Insight, and then select Save Layout.

The widget automatically detects the Workflow profile associated with the Collection under which the Insight is created and adds the widget to the Insight.

Deployment Frequency calculation

Deployment Frequency performance is ranked on the following grading scale:

  • Elite: More than one deployment per day.
  • High: Deployments occur anywhere from once per day to once per week.
  • Medium: Deployments occur anywhere from once per week to once per month.
  • Low: Deployment occur less than once per month.

The Deployment Frequency formula depends on whether you are tracking issue management, SCM, or CI/CD. The following factors can contribute to Deployment Frequency calculations:

  • The SEI integration chosen in the Workflow profile.
    • For Issue Management SEI integrations, SEI counts the number of issues deployed.
    • For SCM SEI integrations, SEI counts the number of PRs deployed.
    • For CI/CD SEI integrations, SEI counts the number of jobs deployed.
  • Filters applied to the Workflow profile.
  • Collection-level filters.
  • Widget-level filters.
  • Insight time range, which is the time range selected by the user when viewing the Insight.

To learn more, go to Deployment Frequency calculation.

info

SEI fetches the history for both the builds jobs and triggers jobs for each pipeline from GitLab. The list of all jobs is available in the job selection tab under Deployment Frequency when configuring the DORA profile.

Deployment Frequency calculation example

Consider the following Deployment Frequency configuration:

  • SEI integration: Jira
  • Filter: Status Category Equals Done
  • Calculation parameter: Ticket resolved in Insight time range
  • Time Range selected on the dashboard: Last 3 months

With this configuration, the Deployment Frequency widget shows the total number of tickets with a status of Done in the given time range.

Daily Deployment Frequency = ( Tickets in Done status ) / ( Days in Time Range )
Weekly Deployment Frequency = ( Tickets in Done status ) / ( Days in Time Range / 7 )

Assuming there are 24 tickets in Done status in the last 91 days, then the Deployment Frequency is 0.263 deployments per day and 1.846 deployments per week.

24 / 91 = 0.263
24 / 13 = 1.846

Lead Time for Changes

This report displays the time taken by an issue to go from code committed to code successfully running in production. DORA calculation for Lead Time is similar to how lead time, in general, is calculated, with the difference being the ability to associate a Collection while defining the DORA profile, i.e., at the profile level.

This report represents the amount of time it takes a commit to get into production.

The overall lead time is the sum of the average time spent in each stage configured in the workflow. This metric can help identify where the team is spending time and if the amount of time spent in each stage falls in an acceptable range.

Note that for lead time metrics you can define stages based on either of the following events:

  • Ticket Created: This event ensures that lead time tracking starts in issue management.
  • Commit Created: This event ensures that lead time tracking starts when the first commit is committed.
  • API Event: This This event triggers the lead time calculation based on a custom API event.

The default configuration for a Ticket-based workflow profile has five stages where as PR-based Workflow profile has four stages. To find more information, go to Workflow profiles for lead time.

For information about other Lead Time reports, go to Lead time reports.

Add the DORA Lead Time for Changes report

The Lead Time for Changes widget aggregates lead time across your issue management system, SCM, and CI/CD tools.

To add the Lead Time for Changes widget to Insights:

  1. Go to the Insight where you want to add the widget. Make sure you are in the correct project.
  2. Select Settings, and then select Add Widget.
  3. Select the Lead Time for Changes widget.

  1. Configure the Filters for the widget (e.g., Issue Resolved In for the Last Quarter)
  2. Select the metric you want to measure under the Metrics tab. For example: Average Time in the Stage measures the average time spent in each stage.
  3. Under the Settings tab, specify the associated Workflow profile.
  4. Select Next: Place Widget, place the widget on the Insight and then select Save Layout.
  5. On the Settings tab, select the relevant Workflow profile.
  6. Select Next: Place Widget, place the widget on the Insight, and then select Save Layout.

For information about other Lead Time reports, go to Lead time reports.

Development Stages

Lead Time to First Commit

This metric refers to the amount of time that passes from the beginning of a development cycle (like the start of a sprint or when a feature is first planned) to the first commit in the SCM. Essentially, it measures how long it takes to start actual coding work after a task is defined.

PR Creation Time

This is the duration between the first commit in a repository and the creation of the first pull request that includes this commit. It reflects how promptly changes are proposed for review after initial development.

Time to Comment

This metric measures the duration from the moment a pull request is created to the time the first comment is made on it. It's an indicator of the engagement and response time of the team or reviewers.

Approval Time

This measures the time taken from the creation of a pull request to its first approval. It's a gauge of how quickly a PR is reviewed and approved by the team.

Merge Time

This is the time taken to merge the first pull request after it has been created. It indicates the speed at which changes are integrated into the main branch.

info

Note that for Lead Time For Changes Report you can choose to enable or disable the Development Stages based on your requirements.

Lead Time for Changes calculation

Overall lead time is the sum of the time spent in each stage in a workflow, such as commit-to-deployment time for a change, open-to-merge time for PRs, or the issue workflow for issues in your issue management system. Lead time can help identify where a team is spending time and if the amount of time spent in each stage falls in an acceptable range.

The specific events or stages considered in a lead time calculation depend on the report and the stages defined in the associated Workflow profile. The lead time ultimately depends on the stages that a PR or issue actually goes through. For example, if there are no comments on the a, then the time to comment is zero.

To learn more, go to DORA Lead Time calculation.

The following examples demonstrate how PR lead time would be calculated in different scenarios. These examples are based on the default configuration for a PR-based DORA type Workflow profile, which has four stages: PR Creation Time, Time to Comment, Approval Time, and Merge Time.

When reviewing these examples, consider the following:

  • Time to Comment helps you understand the lead time between PR creation time and the associated review.
  • There are two ways to track the time taken for a PR approval:
    • Default Approval Time configuration: The overall approval time, starting from PR creation.
    • Approval Time minus Time to Comment: Time spent in the review cycle when an active reviewer is involved.
  • The overall Lead Time is the sum of the average time spent in each stage. This is where you can determine where teams are spending their time and whether this is an acceptable range.
PR Lead Time calculation example #1

For this example, assume the following series of events occurs:

  1. Contributor makes a commit (Commit created event).
  2. Contributor creates a Pull Request (Pull Request created event).
  3. The Pull Request is approved by an approver (Pull Request approval event).
  4. The Pull Request is merged to the repository (Pull Request Merged event).

As a result the following calculations are made:

PR creation time = Time to First PR creation - Time to Commit (Default)
Time to Comment = Time to first comment - Time to PR creation (Default)
Approval Time = Time to first PR Approval - PR Creation Time (Default)
Merge Time = Time for the first approval - Time to the PR creation (Default)

Change Failure Rate

Change Failure Rate represents the percentage of deployments that cause a failure in production.

To monitor Change Failure Rate in SEI, you must set up a Workflow profile, and then add the Change Failure Rate widget to Insights.

To measure the Change Failure Rate accurately, define your workflow profile configuration to choose a set of pipelines that are responsible for deploying to Production environments and have specific Failure statuses or have specific run parameters configured. It is recommended for the denominator i.e. Total Deployments to have an identical configuration as the Deployment Frequency definition.

Add the Change Failure Rate report

  1. Go to Settings and select Workflow Profiles.

  2. Select Add Profile or select an existing profile to modify.

  3. If this is a new profile, on the Workflow Profile Configuration page, enter a name for the profile.

  4. Select Change Failure Rate, and select the SEI integration to use. Configuration details vary by SEI integration type. Default values are pre-populated, and you can change them, if desired. For example:

    • Select factors to use to calculate failed deployments.
    • Select factors to use to calculate total deployments.
    • Select whether the failed deployment calculation should be based on items that were updated/ended or created/started within the Insight time range. Insight time is the time range selected by the user when viewing the Insight.

    Here you can also select Show absolute value if you would rather get the absolute value than the rate (percentage).

  5. If you want to view or change the projects and Collections associated with the profile, select Associations. Projects and Collections are automatically derived from the SEI integration you chose for Change Failure Rate. For more information, go to Collections.

  6. Select Save to save the profile.

  7. Go to the Insight where you want to add the Change Failure Rate widget. Make sure you are in the correct project.

  8. Select Settings, and then select Add Widget.

  9. Select the Change Failure Rate widget.

  10. Select Next: Place Widget, select where you want to place the widget on the Insight, and then select Save Layout.

The Change Failure Rate widget is now part of your Insight.

Change Failure Rate Calculation and Scoring

Change Failure Rate performance is ranked on the following grading scale:

  • Elite: Failure rate under 15 percent.
  • High: Failure rate of 16 to 30 percent.
  • Medium: Failure rate of 31 to 45 percent.
  • Low: Failure rate above 45 percent.

The Change Failure Rate is calculated by dividing the number of failed deployments by the total number of deployments. The actual values included in this calculation are based on the following factors:

  • The SEI integration chosen in the Workflow profile.
    • For issue management SEI integrations, SEI counts the number of issues deployed.
    • For SCM SEI integrations, SEI counts the number of PRs deployed.
    • For CI/CD SEI integrations, SEI counts the number of jobs deployed.
  • Filters applied to the Workflow profile.
  • Collection-level filters.
  • Widget-level filters.
  • Insight time range, which is the time range selected by the user when viewing the Insight.

To learn more, go to Change Failure Rate calculation.

Change Failure Rate calculation example

Consider the following Change Failure Rate configuration:

  • SEI integration: Jira
  • Filter for Failed Deployment: Status Category Equals Done
  • Filter for Total Deployment: Status Category Equals Done, To do, In Progress
  • Calculation parameter: Ticket resolved in Insight time range
  • Time Range selected on the dashboard: Last 3 months

With this configuration, the Change Failure Rate widget shows the total number of tickets with a status of Done divided by the total number of tickets with a status of Done, In Progress, or To Do.

Change Failure Rate = ( Tickets in Done status ) / (Tickets in Done status + Ticket in In Progress status + Tickets in To Do status )

Assuming there are 45 tickets in Done status and 90 tickets in Done, In Progress, or To Do status, then the Change Failure Rate is 45 divided by 90, or 0.5 (50 percent).

45 / 90 = 0.5
Change Failure Rate = 50%

Mean Time To Restore (MTTR)

Mean Time To Restore/Recover (MTTR), or Time to Restore Service, indicates how long it takes an organization to recover from a failure in production.

MTTR is a good metric for assessing the speed of your recovery process across several areas of technology. The overall time can be analyzed stage by stage over the organization's failure recovery workflow.

There are several ways to present MTTR in SEI Insights, including:

To learn more, go to DORA MTTR calculation.

Add the DORA Mean Time To Restore report

To add the DORA Mean Time To Restore report to the Insight:

  1. Select Settings, and then select Add Widget.
  2. Select the Mean Time To Restore widget.
  3. Customize the widget by configuring Filters. This step allows you to specify conditions (such as Issue Created In/Resolved In) that contribute to the overall calculations.
  4. Select the metric you want to measure under the Metrics tab. For example: Average Time in the Stage measures the average time spent in each stage.
  5. On the Settings tab, select the relevant Workflow profile.
  6. Select Next: Place Widget, place the widget on the Insight, and then select Save Layout.