Metrics Reports

Updated at:

Apsara DevOps Metrics Reports provide multidimensional data analysis to help R&D managers detect risks and issues in the development process, identify bottlenecks, understand team contributions, and improve iteration efficiency.

Service Enabled

On the repository homepage, go to your target repository. Choose Settings > Integrations and Services. Find the Insight Reports service and click the toggle switch to grant authorization and enable it.

Use the service

Note: No data will be available on the day you enable the service. Data becomes visible the next day after synchronization.

Important

The data statistics service updates daily with a one-day delay (T+1). Today’s data is available for viewing the following day: Why can I only view report data the next day?

Important notes

To ensure report accuracy, confirm the following:

  • The email configured in your local git config matches the primary mailbox bound to the platform exactly, including letter case.

  • Statistics based on commit time use your local system time. Confirm your local time settings are correct.

In the navigation pane on the left, click Reports to open the Metrics Reports page. At the top, select a date range and switch the statistical dimension using By Repository or By Branch. In addition to code-related panels, the page includes panels for Merge Request Completion Distribution (number of merge requests and average cycle time) and Merge Request Review Trends (review count and comment count).

Repository language distribution

This shows the total lines of code and language distribution in the repository’s default branch at the current time.

The top of the page displays the total lines of code and a ring-style pie chart of language distribution. The Data Details table below lists line counts and percentages by language. Use the filters in the upper-right corner to narrow results by Selected Repositories and Time Range.

Code contributions

Code contributions include Commit Count and Code Volume.

  • Commit Time Distribution: Shows how many commits occurred each hour of the day during the selected time range. Darker colors indicate more commits in that time segment.

  • Commits by Contributor: Displays the top 5 contributors by commit count during the selected time period.

  • Code Change Trend: Shows trends in added and deleted lines of code for the selected repository or branch over the selected time period.

  • Code Changes by Contributor: Displays the top 5 contributors by total lines of code changed during the selected time period.

3-1

Important

Overall data aggregates all commits in the repository. However, because Git operations are highly flexible, certain actions can cause the same code changes to appear in multiple commits, leading to duplicate counts. Examples include the following:

  • Commit the amendment.

  • Rebasing with content changes or modified commit messages.

  • Squash merging, which combines multiple commits into a new single commit.

Because some measurement error is unavoidable, treat overall data as a general reference. For more precise insights, switch to a specific branch for detailed analysis.

Merge requests

  • Merge Request Completion Distribution: Shows completion times and cycle durations for each merge request during the selected time period.

  • Merge Request Review Trends: Displays trends in review counts and comment counts for merge requests in the selected repository over the selected time period.

  • Comments per Thousand Lines of Code: Shows the trend of review comments generated per 1,000 lines of code submitted in the selected repository during the selected time period.

  • New Merge Requests by Creator: Displays the top 5 contributors by number of merge requests created during the selected time period.