[VSA] DORA 4 metrics
### Problem to solve Customers are very interested in being able to see their DORA ["Four Keys"](https://cloud.google.com/blog/products/devops-sre/using-the-four-keys-to-measure-your-devops-performance) metrics. ### Proposal Value Stream Analytics is a sensible place to display the DORA 4 metrics. We should display all 4 metrics on the page: - [ ] [Deployment Frequency](https://gitlab.com/groups/gitlab-org/-/epics/5374) - [x] Definition: "Average time between production deployments." - [x] Create [Deployment Frequency API](https://docs.gitlab.com/ee/api/project_analytics.html) - [x] Incomplete initial implementation under https://gitlab.com/gitlab-org/gitlab/-/issues/210079 - [x] ~~Switch to using Deployment finish time instead of create time~~ under https://gitlab.com/gitlab-org/gitlab/-/issues/300193 - [x] ~~Restrict to production deploys~~ under https://gitlab.com/gitlab-org/gitlab/-/issues/300065 - [ ] Extend API with projects param under https://gitlab.com/gitlab-org/gitlab/-/issues/322165 - [ ] Update group-level VSA to use API - [ ] Update project-level VSA to use API - [ ] Lead Time for Changes - [x] Definition: "Average time from commit creation to its deployment to production". - [x] [Create MR Lead Time API](https://gitlab.com/gitlab-org/gitlab/-/issues/291746) - [ ] Implement under https://gitlab.com/gitlab-org/gitlab/-/issues/300472 - [ ] Change Failure Rate - [x] Definition: "Incident count divided by Deployment count". - [ ] Create Change Failure Rate API endpoint under https://gitlab.com/gitlab-org/gitlab/-/issues/299407 - [ ] Implement under https://gitlab.com/gitlab-org/gitlab/-/issues/210323 (duplicated by https://gitlab.com/gitlab-org/gitlab/-/issues/247499) - [ ] Time to Restore Service - [x] Definition: "the average duration (from open to close) of all Incidents opened in the time period". - [ ] Create Time To Restore API endpoint under https://gitlab.com/gitlab-org/gitlab/-/issues/299096 - [ ] Implement under https://gitlab.com/gitlab-org/gitlab/-/issues/210321 (duplicated by https://gitlab.com/gitlab-org/gitlab/-/issues/254193)
epic