Features

Custom Metrics

Define organization-specific engineering metrics using a low-code builder, compose them from existing signals, and track them with alerts and trend charts.

Overview

Custom Metrics lets you define engineering metrics that are specific to your team or organization — measurements that Koalr does not provide out of the box. You build them using a guided wizard, choose which data sources and filters apply, and then track them on dashboards, in reports, and via Slack alerts.

Custom metrics are org-scoped. Any member with an Admin or Manager role can create and publish them. All roles can view published metrics.


Metric Types

TypeDescriptionExample
CountTotal number of matching events in a periodPRs merged with no review comments
AverageMean value of a numeric field across matching recordsAverage lines changed per deployment
PercentileP50, P75, P90, or P95 of a numeric fieldP90 review turnaround time
RatioOne count divided by another countPRs with coverage delta positive / total PRs
SumTotal of a numeric field across matching recordsTotal lines added by a team per week

Data Sources

Each metric is backed by exactly one data source. Available sources:

SourceFields available
Pull Requestssize, cycle time, review count, coverage delta, additions, deletions, files changed
Issuesresolution time, priority, estimate, type, label
Deploymentsfrequency, failure rate, lead time, rollback count
ContributorsPRs opened, PRs merged, reviews given, comments left
Reviewsturnaround time, comment count, approval rate

Builder: 7-Step Wizard

Navigate to Custom Metrics → New Metric to open the builder.

StepWhat you do
1. NameEnter a metric name and optional description
2. TypeChoose Count, Average, Percentile, Ratio, or Sum
3. Data sourceSelect the source table (Pull Requests, Issues, etc.)
4. Filter conditionsAdd one or more filters (e.g., label = "backend", team = "Platform")
5. Threshold alertsSet warning and critical thresholds with direction (see below)
6. VisualizationChoose Line chart, Bar chart, or Single stat tile
7. Review and publishPreview a 30-day backfill and publish or save as draft

Published metrics immediately appear in the Custom Metrics dashboard and are available as report columns.


Metric Composition

Custom metrics can be composed from other custom metrics. A composed metric takes two or more existing metrics, assigns each a weight, and produces a weighted average score.

Example composition:

PR Health Score
  = 0.4 × PR Size Score
  + 0.35 × Review Speed Score
  + 0.25 × Coverage Delta Score

To create a composed metric, choose Composed as the metric type in Step 2, then select the source metrics and assign weights. Weights must sum to 1.0.

Composed metrics cannot be composed from other composed metrics (one level of nesting only).


Thresholds and Alerts

Each metric supports two threshold levels:

LevelColorBehavior
WarningYellowVisual indicator on charts and tiles; optional Slack notification
CriticalRedVisual indicator on charts and tiles; Slack notification always sent

For each threshold, set:

  • Value — the numeric boundary
  • Direction — "above" triggers when the metric exceeds the value; "below" triggers when it falls under

Slack alerts include the metric name, current value, threshold breached, and a direct link to the metric detail page.


Process Experiments

Use Process Experiments to A/B test a workflow change against any custom metric. Define:

  • Baseline period — the date range before the change
  • Treatment period — the date range after the change
  • Metric — the custom metric to compare

Koalr computes the mean and variance for both periods and shows the percentage change with a confidence indicator. Experiments require at least 14 days in each period to produce a meaningful signal.


The builder includes a template gallery with pre-built starting points. Select a template to prepopulate Steps 2 through 5 with sensible defaults, then customize as needed.

Available templates:

TemplateTypeData source
Review SLO ComplianceRatioPull Requests
PR Health ScoreComposedPull Requests
Deployment Velocity IndexCountDeployments

Limitations

  • Custom metrics compute once per day, overnight. Real-time values are not available for custom metrics.
  • Backfill on publish covers the last 90 days only.
  • Filters use AND logic only; OR logic across filter groups is not yet supported.
  • Ratio metrics require both numerator and denominator to share the same data source.

  • Reports
  • DORA Metrics
  • Automations
Custom Metrics | Koalr Docs