Skip to content

Add DORA metrics over time datasource for SingleStat Visualizations

What does this MR do and why?

  • Adds a new datasource to query DORAMetrics over time
  • Returns a single value ready for use in the existing SingleStat visualization
  • Adds new visualization types for use in shared dashboards: deployment_frequency_over_time.yaml,deployment_frequency_over_time.yaml,change_failure_rate_over_time.yaml,time_to_restore_service_over_time.yaml, lead_time_for_changes_over_time.yaml

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No visual changes

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

NOTE: You will need an GitLab Ultimate license

  1. Apply the example YAML config below
  2. Navigate to Analyze > Analytics dashboards in the left menu
  3. Click on Value streams dashboard to view

Example yaml config

diff --git a/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml b/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
index efff83a0339a..7faca44d7628 100644
--- a/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
+++ b/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
@@ -6,7 +6,7 @@ panels:
     visualization: dora_chart
     title: Metrics comparison for %{namespaceName} %{namespaceType}
     gridAttributes:
-      yPos: 1
+      yPos: 2
       xPos: 0
       width: 12
       height: 6
@@ -20,11 +20,43 @@ panels:
       width: 12
       height: 1
     options: {}
+  - id: 4
+    visualization: deployment_frequency_over_time
+    title: Deployment frequency
+    gridAttributes:
+      yPos: 1
+      xPos: 0
+      width: 3
+      height: 1
+  - id: 5
+    visualization: lead_time_for_changes_over_time
+    title: Lead time
+    gridAttributes:
+      yPos: 1
+      xPos: 3
+      width: 3
+      height: 1
+  - id: 6
+    visualization: time_to_restore_service_over_time
+    title: TTRS - time to restore
+    gridAttributes:
+      yPos: 1
+      xPos: 6
+      width: 3
+      height: 1
+  - id: 7
+    visualization: change_failure_rate_over_time
+    title: Change failure rate
+    gridAttributes:
+      yPos: 1
+      xPos: 9
+      width: 3
+      height: 1
   - id: 3
     visualization: dora_performers_score
     title: DORA performers score for %{namespaceName} %{namespaceType}
     gridAttributes:
-      yPos: 7
+      yPos: 9
       xPos: 0
       width: 12
       height: 4

Related to #442335 (closed)

Edited by Ezekiel Kigbo

Merge request reports