Deployment Frequency Line Charts For All Environments (Insights config template)
Problem to solve:
There are charts for the deployment frequency of production environments, but it would be great to have the same kind of charts for other environments, especially testing and staging. We want to be able to see the progression of deployments for each environment to analyze our deployment workflow through the different environments.
Potential solutions
Following the #364499 (comment 1018746690)+ enhance the insights.yml to enable users to build their own custom DORA Environments charts so that they can get a comparative view of their software delivery performance.
- For each DORA metrics API, exposing the
environment_tier
. - Enhance the insights.yml file to support the deployment frequency charts type.
- Adding the environment_tier as parameters to insights.yml.
- The insights feature was built to chart
Issuable
records (Issues
andMerge Requests
) and accept optional filters: labels, state. To support the DORA API, we need to extend theinsights
YAML schema with a new query object designed for DORA: https://docs.gitlab.com/ee/user/project/insights/#query - In this MVC, we can provide only one example (configuration template) with guidelines how to customize it.
- This new page can still be located under the insight - Analytics > Insights.
Example configuration:
query:
type: DORA
metric: lead_time_for_changes
environment_tier: Production
Attached is a sketch with example for such a comparative DORA environment_tier
view.
Extend the DORA API
For each DORA metrics API, exposing the environment_tier
.
Allow users access the data needed to create deployment frequency charts for all environments in their external tool of choice.
Extend the DORA metric charts
Show charts for all configured environments.
Acceptance Criteria
Show the Deployment Frequency Charts for testing
, staging
and production
for the past 30 days.