Analyze GitLab usage (FREE)

Instance-level analytics

Introduced 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.

Learn more about instance-level analytics.

Group-level analytics

  • Introduced in GitLab 12.8.
  • 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.

Project-level analytics

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.

User-configurable analytics

The following analytics features are available for users to create personalized views:

Be sure to review the documentation page for this feature for GitLab tier requirements.

DevOps Research and Assessment (DORA) key metrics (ULTIMATE)

The DevOps Research and Assessment (DORA) 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:

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.

Lead time for changes displays in several charts:

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 or the REST 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 or the REST APIs.

Supported DORA metrics in GitLab

Metric Level API UI chart Comments
deployment_frequency Project GitLab 13.7 and later GitLab 14.8 and later The previous API endpoint was deprecated in 13.10.
deployment_frequency Group GitLab 13.10 and later GitLab 13.12 and later
lead_time_for_changes Project GitLab 13.10 and later GitLab 13.11 and later Unit in seconds. Aggregation method is median.
lead_time_for_changes Group GitLab 13.10 and later GitLab 14.0 and later Unit in seconds. Aggregation method is median.
time_to_restore_service Project and group GitLab 14.9 and later Not supported
change_failure_rate Project and group GitLab 14.10 and later Not supported

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 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 and project-level Value Stream Analytics.
  • 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 and project-level Value Stream Analytics.
  • Lead time: The duration of your value stream, from start to finish. Different to 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 time in group-level Value Stream Analytics.
  • Mean Time to Change (MTTC): The average duration between idea and delivery. GitLab measures MTTC from issue creation to the issue's latest related merge request's deployment to production.
  • Mean Time to Detect (MTTD): The average duration that a bug goes undetected in production. GitLab measures MTTD from deployment of bug to issue creation.
  • 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). For more information, see Merge Request Analytics.
  • Mean Time to Recover/Repair/Resolution/Resolve/Restore (MTTR): The average duration that a bug is not fixed in production. GitLab measures MTTR from deployment of bug to deployment of fix.
  • Throughput: The number of issues closed or merge requests merged (not closed) in a period of time. Often measured per sprint. GitLab displays merge request throughput in Merge Request Analytics.
  • Value Stream: The entire work process that is followed to deliver value to customers. For example, the DevOps lifecycle is a value stream that starts with "plan" and ends with "monitor". GitLab helps you track your value stream using Value Stream Analytics.
  • 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 measures velocity as the total points or weight of issues closed in a given period of time.