Metrics Explorer (Beta)

This feature is available in private beta. Please reach out to your Cortex Customer Success Team for access.

Use the Metrics Explorer to understand metric trends over time, then drill into single datapoints for deeper investigation.

Accessing Metrics Explorer

To view, click Eng Intelligence > Metrics Explorer from the main nav.

In the main nav, click Eng Intelligence > Metrics Explorer

Using Metrics Explorer

Configure a graph

  1. On the Metrics Explorer page, click Select data point.

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

  3. At the bottom of the modal, click View metric.

A graph of the metric is displayed, by default using a time range of the last 7 days. Below the graph, see an overview of metrics segmented per team, author, and repository.

The Metrics Explorer displays a graph and metrics per team, author, or repository.

Click into any of the metric points at the bottom of the page to drill in, seeing the data behind the metric.

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.

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.

Select a time range for the Metrics Explorer.

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

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

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

Click Sort in the upper right corner of the data table, below the graph.

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

Git metrics

Git metrics are pulled from Azure DevOps, Bitbucket, GitHub, and GitLab.

Note that any changes that rewrite Git history (such as a rebase then a force push) can impact metric timestamps or calculations.

Closed PRs

The count 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 count 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

Open PRs

The count 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

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.

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

PR reviews count

The number of reviews on a PR.

When you drill in to metric points below the graph, view more data:

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

Deployment metrics

Deploy metrics are pulled from the Cortex deploys API.

Deployment frequency

The number of deployments over a given period of time.

Change failure rate

The percentage of deployments that cause a failure in production.

Calculation: Number of rollbacks / number of deployments created.

Incident metrics

Incident metrics are pulled from PagerDuty.

Incident frequency

The number of incidents over a given period of time.

When you drill in to metric points below the graph, view data per incident:

  • Incident title

  • Status

  • Incident URL

  • Date triggered

  • Date resolved

  • Urgency

  • Time to resolution

Time to resolution

The amount of time it takes for an incident to be resolved.

Calculation: Incident resolution time - incident opened time.

When you drill in to metric points below the graph, view data per incident:

  • Incident title

  • Status

  • Incident URL

  • Date triggered

  • Date resolved

  • Urgency

  • Time to resolution

Last updated

Was this helpful?