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

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

153 lines
10 KiB
Markdown
Raw Normal View History

2020-05-24 23:13:21 +05:30
---
stage: Manage
2021-02-22 17:27:13 +05:30
group: Optimize
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-05-24 23:13:21 +05:30
---
2021-09-04 01:27:46 +05:30
# Analyze GitLab usage **(FREE)**
2020-04-22 19:07:51 +05:30
2020-11-24 15:15:51 +05:30
## Instance-level analytics
2019-10-12 21:52:04 +05:30
2020-06-23 00:09:42 +05:30
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/12077) in GitLab 12.2.
2019-10-12 21:52:04 +05:30
2020-11-24 15:15:51 +05:30
Instance-level analytics make it possible to aggregate analytics across
2019-10-12 21:52:04 +05:30
GitLab, so that users can view information across multiple projects and groups
in one place.
2020-11-24 15:15:51 +05:30
[Learn more about instance-level analytics](../admin_area/analytics/index.md).
2019-10-12 21:52:04 +05:30
2021-11-11 11:23:49 +05:30
## Group-level analytics
2019-10-12 21:52:04 +05:30
2021-03-11 19:13:27 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/195979) in GitLab 12.8.
2021-06-08 01:23:25 +05:30
> - Moved to GitLab Premium in 13.9.
2019-10-12 21:52:04 +05:30
2021-11-11 11:23:49 +05:30
GitLab provides several analytics features at the group level. Some of these features require you to use a higher tier than GitLab Free.
2019-10-12 21:52:04 +05:30
2022-03-02 08:16:31 +05:30
- [Application Security](../application_security/security_dashboard/index.md)
2021-06-08 01:23:25 +05:30
- [Contribution](../group/contribution_analytics/index.md)
- [DevOps Adoption](../group/devops_adoption/index.md)
- [Insights](../group/insights/index.md)
- [Issue](../group/issues_analytics/index.md)
- [Productivity](productivity_analytics.md)
- [Repositories](../group/repositories_analytics/index.md)
- [Value Stream](../group/value_stream_analytics/index.md)
2019-10-12 21:52:04 +05:30
2020-04-22 19:07:51 +05:30
## Project-level analytics
2019-12-04 20:38:33 +05:30
2021-11-11 11:23:49 +05:30
You can use GitLab to review analytics at the project level. Some of these features require you to use a higher tier than GitLab Free.
2019-12-04 20:38:33 +05:30
2022-03-02 08:16:31 +05:30
- [Application Security](../application_security/security_dashboard/index.md)
2021-06-08 01:23:25 +05:30
- [CI/CD](ci_cd_analytics.md)
- [Code Review](code_review_analytics.md)
- [Insights](../project/insights/index.md)
- [Issue](../group/issues_analytics/index.md)
2020-11-24 15:15:51 +05:30
- [Merge Request](merge_request_analytics.md), enabled with the `project_merge_request_analytics`
2021-06-08 01:23:25 +05:30
[feature flag](../../development/feature_flags/index.md#enabling-a-feature-flag-locally-in-development)
- [Repository](repository_analytics.md)
- [Value Stream](value_stream_analytics.md)
2021-04-29 21:17:54 +05:30
2021-11-11 11:23:49 +05:30
## User-configurable analytics
2021-04-29 21:17:54 +05:30
The following analytics features are available for users to create personalized views:
2021-06-08 01:23:25 +05:30
- [Application Security](../application_security/security_dashboard/#security-center)
2021-11-11 11:23:49 +05:30
Be sure to review the documentation page for this feature for GitLab tier requirements.
2021-12-11 22:18:48 +05:30
2022-06-21 17:19:12 +05:30
## DevOps Research and Assessment (DORA) key metrics **(ULTIMATE)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/275991) in GitLab 13.7.
> - [Added support](https://gitlab.com/gitlab-org/gitlab/-/issues/291746) for lead time for changes in GitLab 13.10.
The [DevOps Research and Assessment (DORA)](https://cloud.google.com/blog/products/devops-sre/using-the-four-keys-to-measure-your-devops-performance)
team developed several key metrics that you can use as performance indicators for software development
teams.
### Deployment frequency
Deployment frequency is the frequency of successful deployments to production (hourly, daily, weekly, monthly, or yearly).
This measures how often you deliver value to end users. A higher deployment frequency means you can
get feedback sooner and iterate faster to deliver improvements and features. GitLab measures this as the number of
deployments to a production environment in the given time period.
Deployment frequency displays in several charts:
- [Group-level value stream analytics](../group/value_stream_analytics/index.md)
- [Project-level value stream analytics](value_stream_analytics.md)
- [CI/CD analytics](ci_cd_analytics.md)
### Lead time for changes
Lead time for changes measures the time to deliver a feature once it has been developed,
as described in [Measuring DevOps Performance](https://devops.com/measuring-devops-performance/).
Lead time for changes displays in several charts:
- [Group-level value stream analytics](../group/value_stream_analytics/index.md)
- [Project-level value stream analytics](value_stream_analytics.md)
- [CI/CD analytics](ci_cd_analytics.md)
### Time to restore service
Time to restore service measures how long it takes an organization to recover from a failure in production.
GitLab measures this as the average time required to close the incidents
in the given time period. This assumes:
- All incidents are related to a production environment.
- Incidents and deployments have a strictly one-to-one relationship. An incident is related to only
one production deployment, and any production deployment is related to no more than one incident).
To retrieve metrics for time to restore service, use the [GraphQL](../../api/graphql/reference/index.md) or the [REST](../../api/dora/metrics.md) APIs.
### Change failure rate
Change failure rate measures the percentage of deployments that cause a failure in production. GitLab measures this as the number
of incidents divided by the number of deployments to a
production environment in the given time period. This assumes:
- All incidents are related to a production environment.
- Incidents and deployments have a strictly one-to-one relationship. An incident is related to only
one production deployment, and any production deployment is related to no
more than one incident.
To retrieve metrics for change failure rate, use the [GraphQL](../../api/graphql/reference/index.md) or the [REST](../../api/dora/metrics.md) APIs.
### Supported DORA metrics in GitLab
| Metric | Level | API | UI chart | Comments |
|---------------------------|-------------------------|-------------------------------------|---------------------------------------|-------------------------------|
| `deployment_frequency` | Project | [GitLab 13.7 and later](../../api/dora/metrics.md) | GitLab 14.8 and later | The [previous API endpoint](../../api/dora4_project_analytics.md) was [deprecated](https://gitlab.com/gitlab-org/gitlab/-/issues/323713) in 13.10. |
| `deployment_frequency` | Group | [GitLab 13.10 and later](../../api/dora/metrics.md) | GitLab 13.12 and later | |
| `lead_time_for_changes` | Project | [GitLab 13.10 and later](../../api/dora/metrics.md) | GitLab 13.11 and later | Unit in seconds. Aggregation method is median. |
| `lead_time_for_changes` | Group | [GitLab 13.10 and later](../../api/dora/metrics.md) | GitLab 14.0 and later | Unit in seconds. Aggregation method is median. |
| `time_to_restore_service` | Project and group | [GitLab 14.9 and later](../../api/dora/metrics.md) | Not supported | |
| `change_failure_rate` | Project and group | [GitLab 14.10 and later](../../api/dora/metrics.md) | Not supported | |
2021-12-11 22:18:48 +05:30
## Definitions
We use the following terms to describe GitLab analytics:
- **Cycle time:** The duration of only the execution work. Cycle time is often displayed in combination with the lead time, which is longer than the cycle time. GitLab measures cycle time from the earliest commit of a [linked issue's merge request](../project/issues/crosslinking_issues.md) to when that issue is closed. The cycle time approach underestimates the lead time because merge request creation is always later than commit time. GitLab displays cycle time in [group-level Value Stream Analytics](../group/value_stream_analytics/index.md) and [project-level Value Stream Analytics](../analytics/value_stream_analytics.md).
- **Deploys:** The total number of successful deployments to production in the given time frame (across all applicable projects). GitLab displays deploys in [group-level Value Stream Analytics](../group/value_stream_analytics/index.md) and [project-level Value Stream Analytics](value_stream_analytics.md).
2022-01-26 12:08:38 +05:30
- **Lead time:** The duration of your value stream, from start to finish. Different to
[Lead time for changes](#lead-time-for-changes). Often displayed in combination with "cycle time,"
which is shorter. GitLab measures lead time from issue creation to issue close. GitLab displays lead
2021-12-11 22:18:48 +05:30
time in [group-level Value Stream Analytics](../group/value_stream_analytics/index.md).
2022-01-26 12:08:38 +05:30
- **Mean Time to Change (MTTC):** The average duration between idea and delivery. GitLab measures
2021-12-11 22:18:48 +05:30
MTTC from issue creation to the issue's latest related merge request's deployment to production.
2022-01-26 12:08:38 +05:30
- **Mean Time to Detect (MTTD):** The average duration that a bug goes undetected in production.
2021-12-11 22:18:48 +05:30
GitLab measures MTTD from deployment of bug to issue creation.
2022-01-26 12:08:38 +05:30
- **Mean Time To Merge (MTTM):** The average lifespan of a merge request. GitLab measures MTTM from
merge request creation to merge request merge (and closed/un-merged merge requests are excluded).
2021-12-11 22:18:48 +05:30
For more information, see [Merge Request Analytics](merge_request_analytics.md).
2022-01-26 12:08:38 +05:30
- **Mean Time to Recover/Repair/Resolution/Resolve/Restore (MTTR):** The average duration that a bug
2021-12-11 22:18:48 +05:30
is not fixed in production. GitLab measures MTTR from deployment of bug to deployment of fix.
2022-01-26 12:08:38 +05:30
- **Throughput:** The number of issues closed or merge requests merged (not closed) in a period of
2021-12-11 22:18:48 +05:30
time. Often measured per sprint. GitLab displays merge request throughput in [Merge Request Analytics](merge_request_analytics.md).
2022-01-26 12:08:38 +05:30
- **Value Stream:** The entire work process that is followed to deliver value to customers. For example,
the [DevOps lifecycle](https://about.gitlab.com/stages-devops-lifecycle/) is a value stream that starts
2021-12-11 22:18:48 +05:30
with "plan" and ends with "monitor". GitLab helps you track your value stream using [Value Stream Analytics](value_stream_analytics.md).
2022-01-26 12:08:38 +05:30
- **Velocity:** The total issue burden completed in some period of time. The burden is usually measured
in points or weight, often per sprint. For example, your velocity may be "30 points per sprint". GitLab
2021-12-11 22:18:48 +05:30
measures velocity as the total points or weight of issues closed in a given period of time.