summaryrefslogtreecommitdiff
path: root/doc/user/analytics
diff options
context:
space:
mode:
Diffstat (limited to 'doc/user/analytics')
-rw-r--r--doc/user/analytics/img/product_analytics_commits_per_mr_v14_4.pngbin35894 -> 0 bytes
-rw-r--r--doc/user/analytics/img/productivity_analytics_time_to_merge_v14_4.pngbin21953 -> 0 bytes
-rw-r--r--doc/user/analytics/img/productivity_analytics_trendline_v14_4.pngbin13089 -> 0 bytes
-rw-r--r--doc/user/analytics/index.md23
-rw-r--r--doc/user/analytics/merge_request_analytics.md4
-rw-r--r--doc/user/analytics/productivity_analytics.md122
6 files changed, 54 insertions, 95 deletions
diff --git a/doc/user/analytics/img/product_analytics_commits_per_mr_v14_4.png b/doc/user/analytics/img/product_analytics_commits_per_mr_v14_4.png
deleted file mode 100644
index 2bfde7beead..00000000000
--- a/doc/user/analytics/img/product_analytics_commits_per_mr_v14_4.png
+++ /dev/null
Binary files differ
diff --git a/doc/user/analytics/img/productivity_analytics_time_to_merge_v14_4.png b/doc/user/analytics/img/productivity_analytics_time_to_merge_v14_4.png
deleted file mode 100644
index 0b30aff2c7a..00000000000
--- a/doc/user/analytics/img/productivity_analytics_time_to_merge_v14_4.png
+++ /dev/null
Binary files differ
diff --git a/doc/user/analytics/img/productivity_analytics_trendline_v14_4.png b/doc/user/analytics/img/productivity_analytics_trendline_v14_4.png
deleted file mode 100644
index e0b3c54dee2..00000000000
--- a/doc/user/analytics/img/productivity_analytics_trendline_v14_4.png
+++ /dev/null
Binary files differ
diff --git a/doc/user/analytics/index.md b/doc/user/analytics/index.md
index f699fa6d0fb..41547430e88 100644
--- a/doc/user/analytics/index.md
+++ b/doc/user/analytics/index.md
@@ -8,8 +8,6 @@ info: To determine the technical writer assigned to the Stage/Group associated w
## Instance-level analytics
-> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/12077) in GitLab 12.2.
-
Instance-level analytics make it possible to aggregate analytics across
GitLab, so that users can view information across multiple projects and groups
in one place.
@@ -18,8 +16,7 @@ in one place.
## Group-level analytics
-> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/195979) in GitLab 12.8.
-> - Moved to GitLab Premium in 13.9.
+> Moved to GitLab Premium in 13.9.
GitLab provides several analytics features at the group level. Some of these features require you to use a higher tier than GitLab Free.
@@ -50,7 +47,7 @@ You can use GitLab to review analytics at the project level. Some of these featu
The following analytics features are available for users to create personalized views:
-- [Application Security](../application_security/security_dashboard/#security-center)
+- [Application Security](../application_security/security_dashboard/index.md#security-center)
Be sure to review the documentation page for this feature for GitLab tier requirements.
@@ -124,14 +121,14 @@ To retrieve metrics for change failure rate, use the [GraphQL](../../api/graphql
### 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 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) | GitLab 15.1 and later | Unit in days. Aggregation method is median. |
-| `change_failure_rate` | Project and group | [GitLab 14.10 and later](../../api/dora/metrics.md) | GitLab 15.2 and later | Percentage of deployments. | |
+| 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 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) | GitLab 15.1 and later | Unit in days. Aggregation method is median. |
+| `change_failure_rate` | Project and group | [GitLab 14.10 and later](../../api/dora/metrics.md) | GitLab 15.2 and later | Percentage of deployments. |
## Definitions
diff --git a/doc/user/analytics/merge_request_analytics.md b/doc/user/analytics/merge_request_analytics.md
index 29f2ec79800..038b2f0c97e 100644
--- a/doc/user/analytics/merge_request_analytics.md
+++ b/doc/user/analytics/merge_request_analytics.md
@@ -31,12 +31,12 @@ To view merge request analytics:
1. On the top bar, select **Menu > Projects** and find your project.
1. On the left sidebar, select **Analytics > Merge request**.
-## View merge requests merged per month
+## View the number of merge requests in a date range
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/232651) in GitLab 13.3.
> - Filtering [introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/229266) in GitLab 13.4
-To view the number of merge requests merged per month:
+To view the number of merge requests merged during a specific date range:
1. On the top bar, select **Menu > Projects** and find your project.
1. On the left sidebar, select **Analytics > Merge request**.
diff --git a/doc/user/analytics/productivity_analytics.md b/doc/user/analytics/productivity_analytics.md
index be710f8cbd7..f8b28ead155 100644
--- a/doc/user/analytics/productivity_analytics.md
+++ b/doc/user/analytics/productivity_analytics.md
@@ -4,103 +4,65 @@ 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
---
-# Productivity Analytics **(PREMIUM)**
+# Productivity analytics **(PREMIUM)**
-> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/12079) in GitLab 12.3.
+You can use productivity analytics to identify:
-Track development velocity with Productivity Analytics.
+- Your development velocity based on how long it takes for a merge request to merge.
+- The most time consuming merge requests and potential causes.
+- Authors, labels, or milestones with the longest time to merge, or most changes.
-For many companies, the development cycle is a black box and getting an estimate of how
-long, on average, it takes to deliver features is an enormous endeavor.
+Use productivity analytics to view the following merge request statistics for your groups:
-While [Value Stream Analytics](../analytics/value_stream_analytics.md) focuses on the entire
-Software Development Life Cycle (SDLC) process, Productivity Analytics provides a way for Engineering Management to drill down in a systematic way to uncover patterns and causes for success or failure at an individual, project, or group level.
+- Amount of time between merge request creation and merge.
+- Amount of time between commits, comments, and merge.
+- Complexity of changes, like number of lines of code per commit and number of files.
-Productivity can slow down for many reasons ranging from degrading codebase to quickly growing teams. To investigate, department or team leaders can start by visualizing the time it takes for merge requests to be merged.
+To view merge request data for projects, use [Merge request analytics](../analytics/merge_request_analytics.md).
-## Visualizations and metrics
+## View productivity analytics
-With Productivity Analytics, GitLab users can:
+Prerequisite:
-- Visualize typical merge request (MR) lifetime and statistics. A histogram shows the distribution of the time elapsed between creating and merging merge requests.
-- Drill down into the most time consuming merge requests, select outliers, and filter subsequent charts to investigate potential causes.
-- Filter by group, project, author, label, milestone, or a specific date range. For example, filter down to the merge requests of a specific author in a group or project during a milestone or specific date range.
-- Measure velocity over time. To observe progress, visualize the trends of each metric from the charts over time. Zoom in on a particular date range if you notice outliers.
+- You must have at least the Reporter role for the group.
-## Metrics charts
+1. On the top bar, select **Menu > Groups** and find your group.
+1. On the left sidebar, select **Analytics > Productivity**.
+1. Optional. Filter results:
+ 1. Select a project from the dropdown list.
+ 1. To filter results by author, milestone, or label,
+ select **Filter results...** and enter a value.
+ 1. To adjust the date range:
+ - In the **From** field, select a start date.
+ - In the **To** field, select an end date.
-To access the charts, navigate to a group's sidebar and select **Analytics > Productivity Analytics**.
-Metrics and visualizations of **merged** merge requests are available on a project or group level.
+## View time metrics for merge requests
-### Time to merge
+Use the following charts in productivity analytics to view the velocity of your merge requests:
-The **Time to merge** histogram shows the number of merge requests and the number
-of days it took to merge after creation. Select a column to filter subsequent charts.
+- **Time to merge**: number of days it took for a
+merge requests to merge after they were created.
+- **Trendline**: number of merge requests that were merged in a specific time period.
-![Metrics for number of days merge requests per number of days](img/productivity_analytics_time_to_merge_v14_4.png)
+1. On the top bar, select **Menu > Groups** and find your group.
+1. On the left sidebar, select **Analytics > Productivity**.
-### Trendline
+To filter time metrics:
-The **Trendline** scatterplot shows all merge requests on a certain date,
-and the days it took to complete the action and a 30 day rolling median. Select the dropdown to view:
+1. To filter the **Trendline** chart, in the **Time to merge** chart, select a column.
+1. To view a specific merge request, below the charts, select a merge request from the **List**.
-- Time from first commit to first comment.
-- Time from first comment until last commit.
-- Time from last commit to merge.
-- Number of commits per merge request.
-- Number of lines of code (LOC) per commit.
-- Number of files touched.
+## View commit statistics
-![Metrics for amount of merge requests merged on a certain date](img/productivity_analytics_trendline_v14_4.png)
+To view commit statistics for your group:
-### Commits and merge request size
+1. On the top bar, select **Menu > Groups** and find your group.
+1. On the left sidebar, select **Analytics > Productivity**.
+1. Under the **Trendline** scatterplot, view the commit statistics:
+ - The left histogram shows the number of hours between commits, comments, and merges.
+ - The right histogram shows the number of commits and changes per merge request.
-Under the **Trendline** scatterplot, the left-side histogram shows
-the time taken (in hours) between commits and comments until the merge
-request is merged. Select the dropdown to view:
+To filter commit statistics:
-- Time from first commit to first comment.
-- Time from first comment until last commit.
-- Time from last commit to merge.
-
-The right-side histogram shows the size or complexity of a merge request.
-Select the dropdown to view:
-
-- Number of commits per merge request.
-- Number of lines of code (LOC) per commit.
-- Number of files touched.
-
-![Metrics for amount of commits and complexity of changes per merge request.](img/product_analytics_commits_per_mr_v14_4.png)
-
-### Merge request list
-
-The **List** table shows a list of merge requests with their respective time duration metrics.
-
-Sort metrics by:
-
-- Time from first commit to first comment.
-- Time from first comment until last commit.
-- Time from last commit to merge.
-
-Filter metrics by:
-
-- Number of commits per merge request.
-- Number of lines of code per commit.
-- Number of files touched.
-
-## Filter by date range
-
-> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/13188) in GitLab 12.4.
-
-You can filter analytics based on a date range. To filter results:
-
-1. Select a group.
-1. Optional. Select a project.
-1. Select a date range by using the available date pickers.
-
-## Permissions
-
-The **Productivity Analytics** dashboard can be accessed only:
-
-- On [GitLab Premium](https://about.gitlab.com/pricing/) and above.
-- By users with at least the Reporter role.
+1. To view different types of commit data, select the dropdown list next to each histogram.
+1. To view a specific merge request, below the charts, select a merge request from the **List**.