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 and Mean Time to Restore service (MTTR).
With SEI, you can use the DORA Metrics Insight 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
Definition
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 report
To add the Deployment Frequency widget to Insights:
Step 1: Add the widget
Go to the Insight where you want to add the widget. Make sure you are in the correct project.
Select Settings, and then select Add Widget.
Select the Deployment Frequency widget.
Step 2: Configure the widget settings
Configure the widget settings as desired, such as the enable/disable DORA grading and Collection Level Filters.
Editing the Collection Level Filters will reflect the changes in the Collection Settings.
Step 3: Save the widget
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.
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.
Lead Time for Changes
Definition
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 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:
Step 1: Add the widget
Go to the Insight where you want to add the widget. Make sure you are in the correct project.
Select Settings, and then select Add Widget.
Select the Lead Time for Changes widget.
Step 2: Configure the widget settings
Configure the Filters for the widget (e.g.,
Issue Resolved In
for the Last Quarter)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.Under the Settings tab, specify the associated Workflow profile.
Select Next: Place Widget, place the widget on the Insight and then select Save Layout.
On the Settings tab, select the relevant Workflow profile.
Step 3: Save the widget
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.
Note that for the 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.
Change Failure Rate
Definition
The Change Failure Rate metric represents the percentage of deployments that cause a failure in production.
To monitor the 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 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 report
Step 1: Define the Change Failure Rate on the DORA profile
Go to Settings and select Workflow Profiles.
Select Add Profile or select an existing profile to modify.
If this is a new profile, on the Workflow Profile Configuration page, enter a name for the profile.
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).
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.
Select Save to save the profile.
Step 2: Add the widget
Go to the Insight where you want to add the Change Failure Rate widget. Make sure you are in the correct project.
Select Settings, and then select Add Widget.
Select the Change Failure Rate widget.
Step 3: Save the widget
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.
Mean Time To Restore (MTTR)
Definition
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:
DORA Mean Time To Restore
Time To Restore Service
Issue Resolution Time reports
To learn more, go to DORA MTTR calculation.
Add the report
To add the DORA Mean Time To Restore report to the Insight:
Step 1: Add the widget
Select Settings, and then select Add Widget.
Select the Mean Time To Restore widget.
Step 2: Configure the widget settings
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.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.On the Settings tab, select the relevant Workflow profile.
Step 3: Save the widget
Select Next: Place Widget, place the widget on the Insight, and then select Save Layout.
Last updated