Metrics Explorer enables you to analyze metric trends over time and drill into specific data points for detailed investigation. Use this tool to understand patterns in your development process and identify areas for improvement.
Accessing Metrics Explorer
To view, click Eng Intelligence > Metrics Explorer from the main nav.
Using Metrics Explorer
Configure a graph
On the Metrics Explorer page, click the metric name in the upper left corner. By default, Cycle time is displayed.
A modal will appear.
On the left side of the modal, select a data point. On the right side, depending on which metric you choose, you can select an operation.
A graph of the metric is displayed. By default the data uses a time range of the last 7 days, but you can select a different time range.
Below the graph, see an overview of metrics that can be segmented by team, author, repository, entity, and more.
Click into any of the metric points at the bottom of the page to drill in, seeing the data behind the metric.
Segment the metrics
Click the Group by dropdown below the graph to choose a different way to segment the metrics.
The metrics segmented by team are based on the individual users within that team. In order to have data appear, the teams must have members and the team's identity mappings must be configured.
You can group by:
Person: Author, author team, author user label, reviewer, reviewer team, reviewer user label
Entity: Group, entity
Pull Request: Repository, label
Owner: Team owner, individual owner
Filter the graph
You can filter a graph by time range, teams, author, and repository.
Filter by time range
Click the time range in the upper right corner of the graph. Select a new time range and configure the dates. The graph will automatically reload as you select a time range.
To change the grouping of the time range in the graph, click Display in the upper right corner. You can choose whether to display the data grouped by day, week, or month.
Filter by team, author, or repository
Click Filter in the upper right corner of the graph. You can configure a single filter or a combination of filters for teams, authors, and repositories.
When you are done adding filters, click Apply at the bottom of the filter modal.
Sort the columns
You can sort the data below the graph. Click Sort, then select an option.
Share a report
After selecting a data point and applying filters, you can share the browser URL with other people who have access to your Cortex workspace. The URL query parameters include timestamps, so the shared Metrics Explorer page will reflect the same results across different timezones.
Metrics available in the Metrics Explorer
Note thatmetrics in Metrics Explorersync on a scheduled basis, updating every 4 hours.
Note that any changes that rewrite Git history (such as a rebase then a force push) can impact metric timestamps or calculations.
Cycle time
The first commit on a PR to when the PR is merged. This represents the time it takes for a single PR to go through the entire coding process.
Note: This metric is not supported for Azure DevOps.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
First commit date
Date closed
Cycle time
Closed PRs
The number of PRs closed in a given time period.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Date closed
Merged PRs
The number of PRs merged in a given time period.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Date closed
Number of comments per PR
The number of comments on a pull request.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
First commit date
Number of comments per PR
Number of unique PR authors
The number of unique PR authors.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
First commit date
Date opened
Time to open
This is the time between the first commit date and the date opened.
Open PRs
The number of PRs opened in a given time period.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Date closed
PR reviews count
The number of reviews on a PR.
When you drill in to metric points below the graph, view more data:
PR name
Reviewer
Review date
PR size
The number of lines of code modified in a PR.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Number of lines added
Number of lines deleted
PR size
Success rate
The percentage of PRs that are opened and eventually merged in a given time frame.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Date opened
Date closed
Time to approve
The time from the first review to the time it’s approved. This represents how long engineers are spending reviewing code. If the first review is an approval, this time will be 0 as the timestamps will be the same.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Review date
Approval date
Time to approve
This is the time between the review date and the approval date.
Time to first review
The time a PR is open to when the PR gets it’s first review (comment or approval). This represents how long PRs are waiting idol before someone starts reviewing it.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Date opened
First review time
Time to first review
This is the time between the open date and the first review time.
Time to merge
The time from when the PR is approved to when it’s merged.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
Approval date
Date closed
Time to merge
This is the time between the approval date and the date closed.
Time to open
The time it takes from the first commit on a PR until the PR is opened. This represents the time spent coding.
When you drill in to metric points below the graph, view data per PR:
PR name
Author
PR status
First commit date
Date opened
Time to open
This is the time between the first commit date and the date opened.