debian-mirror-gitlab/doc/user/analytics/ci_cd_analytics.md

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

110 lines
4.7 KiB
Markdown
Raw Normal View History

2021-03-08 18:12:59 +05:30
---
stage: Release
group: Release
2022-11-25 23:54:43 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/product/ux/technical-writing/#assignments
2021-03-08 18:12:59 +05:30
---
2022-05-07 20:08:51 +05:30
# CI/CD analytics **(FREE)**
2021-03-08 18:12:59 +05:30
2022-07-23 23:45:48 +05:30
Use the CI/CD analytics page to view pipeline success rates and duration, and the history of [DORA metrics](index.md#devops-research-and-assessment-dora-key-metrics) over time.
2021-03-08 18:12:59 +05:30
2022-07-23 23:45:48 +05:30
## Pipeline success and duration charts
2021-03-08 18:12:59 +05:30
2022-05-07 20:08:51 +05:30
CI/CD analytics shows the history of your pipeline successes and failures, as well as how long each pipeline
2022-03-02 08:16:31 +05:30
ran.
2021-03-08 18:12:59 +05:30
2022-07-23 23:45:48 +05:30
Pipeline statistics are gathered by collecting all available pipelines for the
project, regardless of status. The data available for each individual day is based
on when the pipeline was created.
The total pipeline calculation includes child
pipelines and pipelines that failed with an invalid YAML. To filter pipelines based on other attributes, use the [Pipelines API](../../api/pipelines.md#list-project-pipelines).
2021-03-08 18:12:59 +05:30
View successful pipelines:
![Successful pipelines](img/pipelines_success_chart.png)
View pipeline duration history:
![Pipeline duration](img/pipelines_duration_chart.png)
2022-03-02 08:16:31 +05:30
## View CI/CD analytics
To view CI/CD analytics:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-03-02 08:16:31 +05:30
1. On the left sidebar, select **Analytics > CI/CD Analytics**.
2022-05-07 20:08:51 +05:30
## View deployment frequency chart **(ULTIMATE)**
2021-03-08 18:12:59 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/275991) in GitLab 13.8.
2022-05-07 20:08:51 +05:30
The deployment frequency charts show information about the deployment
2021-06-08 01:23:25 +05:30
frequency to the `production` environment. The environment must be part of the
[production deployment tier](../../ci/environments/index.md#deployment-tier-of-environments)
for its deployment information to appear on the graphs.
2021-03-08 18:12:59 +05:30
2022-07-23 23:45:48 +05:30
Deployment frequency is one of the four [DORA metrics](index.md#devops-research-and-assessment-dora-key-metrics) that DevOps teams use for measuring excellence in software delivery.
2022-05-07 20:08:51 +05:30
The deployment frequency chart is available for groups and projects.
To view the deployment frequency chart:
2021-06-08 01:23:25 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-05-07 20:08:51 +05:30
1. On the left sidebar, select **Analytics > CI/CD Analytics**.
1. Select the **Deployment frequency** tab.
2021-04-29 21:17:54 +05:30
2022-05-07 20:08:51 +05:30
![Deployment frequency](img/deployment_frequency_charts_v13_12.png)
## View lead time for changes chart **(ULTIMATE)**
2021-04-29 21:17:54 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/250329) in GitLab 13.11.
2022-05-07 20:08:51 +05:30
The lead time for changes chart shows information about how long it takes for
merge requests to be deployed to a production environment. This chart is available for groups and projects.
2021-04-29 21:17:54 +05:30
2022-05-07 20:08:51 +05:30
- Small lead times indicate fast, efficient deployment
processes.
- For time periods in which no merge requests were deployed, the charts render a
red, dashed line.
2021-04-29 21:17:54 +05:30
2022-10-11 01:57:18 +05:30
Lead time for changes is one of the four [DORA metrics](index.md#devops-research-and-assessment-dora-key-metrics) that DevOps teams use for measuring excellence in software delivery.
2022-07-23 23:45:48 +05:30
2022-05-07 20:08:51 +05:30
To view the lead time for changes chart:
2021-04-29 21:17:54 +05:30
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-05-07 20:08:51 +05:30
1. On the left sidebar, select **Analytics > CI/CD Analytics**.
1. Select the **Lead time** tab.
2021-06-08 01:23:25 +05:30
2022-05-07 20:08:51 +05:30
![Lead time](img/lead_time_chart_v13_11.png)
2022-07-23 23:45:48 +05:30
2022-08-13 15:12:31 +05:30
## View time to restore service chart **(ULTIMATE)**
2022-07-23 23:45:48 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/356959) in GitLab 15.1
The time to restore service chart shows information about the median time an incident was open in a production environment. This chart is available for groups and projects.
Time to restore service is one of the four [DORA metrics](index.md#devops-research-and-assessment-dora-key-metrics) that DevOps teams use for measuring excellence in software delivery.
To view the time to restore service chart:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-07-23 23:45:48 +05:30
1. On the left sidebar, select **Analytics > CI/CD Analytics**.
1. Select the **Time to restore service** tab.
![Lead time](img/time_to_restore_service_charts_v15_1.png)
2022-08-13 15:12:31 +05:30
## View change failure rate chart **(ULTIMATE)**
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/357072) in GitLab 15.2
The change failure rate chart shows information about the percentage of deployments that cause an incident in a production environment. This chart is available for groups and projects.
Change failure rate is one of the four [DORA metrics](index.md#devops-research-and-assessment-dora-key-metrics) that DevOps teams use for measuring excellence in software delivery.
To view the change failure rate chart:
2022-10-11 01:57:18 +05:30
1. On the top bar, select **Main menu > Projects** and find your project.
2022-08-13 15:12:31 +05:30
1. On the left sidebar, select **Analytics > CI/CD Analytics**.
1. Select the **Change failure rate** tab.