diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /doc/development/value_stream_analytics.md | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'doc/development/value_stream_analytics.md')
-rw-r--r-- | doc/development/value_stream_analytics.md | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/doc/development/value_stream_analytics.md b/doc/development/value_stream_analytics.md index 955fc88c713..5aa6aecd9db 100644 --- a/doc/development/value_stream_analytics.md +++ b/doc/development/value_stream_analytics.md @@ -354,36 +354,4 @@ Analytics::CycleAnalytics::ReaggregationWorker.new.perform #### Value stream analytics -Seed issues and merge requests for value stream analytics: - - ```shell - // Seed 10 issues for the project specified by <project-id> - $ VSA_SEED_PROJECT_ID=<project-id> VSA_ISSUE_COUNT=10 SEED_VSA=true FILTER=cycle_analytics rake db:seed_fu - ``` - -#### DORA metrics - -Seed DORA daily metrics for value stream, insights and CI/CD analytics: - -1. On the left sidebar, at the top, select **Search GitLab** (**{search}**) to find your project. -1. On the project's homepage, in the upper-left corner, copy the **Project ID**. You need it in a later step. -1. [Create an environment for your selected project from the UI](../ci/environments/index.md#create-a-static-environment) named `production`. -1. Open the rails console: - - ```shell - rails c - ``` - -1. In the rails console, find the created environment by searching for the project ID: - - ```shell - e = Environment.find_by(project_id: <project-id>, name: "production") - ``` - -1. To seed data for the past 100 days for the environment, run the following command: - - ```shell - 100.times { |i| Dora::DailyMetrics.create(environment_id: e.id, date: (i + 1).days.ago, deployment_frequency: rand(50), incidents_count: rand(5), lead_time_for_changes_in_seconds: rand(50000), time_to_restore_service_in_seconds: rand(100000)) } - ``` - -DORA metric data should now be available for your selected project and any group or subgroup it belongs to. +For instructions on how to seed data for value stream analytics, see [development seed files](../development/development_seed_files.md). |