Once you've configured your deployment to let Sleuth know when you deploy, Sleuth will use those events to determine your deploy frequency for all code deployments and feature flags you've setup within a project and environment.
For more on how Sleuth measures Deploy frequency, check out Sleuth CTO, Don Brown, explaining it in detail in this SleuthTV episode!
Sleuth CTO Don Brown explains how Sleuth measures Deploy frequency
In order to help you better contextualize your deploy frequency, Sleuth also provides a detailed breakdown of the batch size of each deploy as a percentage of the total and broken down per day. Batch size is defined as a blend of the number of pull requests, the number of commits, and the amount of code changed, weighted in that order. Batch sizes are defined as:
- Small - usually 1 pull request, 1 - 10 commits and a few hundred lines of code changed
- Medium - usually 1 - 2 pull requests, 10 - 30 commits and many hundreds of lines of code changed
- Large - usually 2 - 4 pull requests, 20 - 40 commits and many hundreds of lines of code changed
- Gigantic - usually 4 or more pull requests or 30 or more commits or many thousands of lines of code changed
Because batch size is a weighted blend of pull requests, commits and code changes, you may find that an especially large amount of change in any of those elements can cause a deploy to be classified as Large or Gigantic.
Sleuth supports feature flags as a first class form of change. That said, we find that teams want to understand the distinction between their code deploy frequency and their flag change frequency. Sleuth's Project Metrics and Team Metrics dashboards show the two frequencies as separate graph lines and allows you to toggle one or the other on and off. To see totals for flag frequency you can hover over a data point.
Sleuth uses our code integrations (Github, Bitbucket, Gitlab, etc) coupled with our deployment tracking to understand when you've deployed. Once you've connected your code to Sleuth, setup your first code deployment and started registering deploys Sleuth will automatically track your deploy frequency and batch size breakdown for each deploy to each of your defined Environments.