Customizations and Settings
Middleware provides various configuration options to tailor the calculations to your teamsβ needs:
Production Branchesβ
Define production branches for fetching deployments and PR merges.
This is a TEAM-SPECIFIC setting.
The branches you define as production branches for a repo are applied only for the selected team.
This allows us to support use-cases where a single monorepo is used by multiple teams which may use different branch name conventions.
By default, the default branches are used as production branches for each repo. Usually it's something like main
or master
.
Incident Typesβ
Choose whether to include Alerts, Revert PRs, and/or Incidents as incident types for CFR and MTTR calculations.
Incident Filtersβ
Apply filters to exclude incidents based on keywords or substrings in their titles.
PR Filtersβ
Exclude PRs that are open for too long or too short to avoid skewing metrics.
Filtering by Branchesβ
Configuring production branches, or filtering by a custom set of branches support Regex.
Simply type the branch name and hit comma to register it as an input, and then press Enter/Return, or click Save if present on the UI.
By default, the default branches are used as production branches for each repo. Usually it's something like main
or master
.
If you have branches like release-1
, release-2
, etc. which you'd like to include in your PRs and Deployments analysis, you can use regexes to target them:
-> release-\d+
Other examples:
Regex | Can be used for |
---|---|
v(\d|\.)+ | v1.2.3 , v2.0 , v5 , v9.44 |
feat-.+ | feat-some-dumb-feature , feat-roadmap , feat-docs |
release-.+ | release-v0.4-alpha , release-feb-25 , release-ios-18.1 |