From 0408e4c29fcee87d7117c69409910a27119495ee Mon Sep 17 00:00:00 2001 From: Zhaochen Li Date: Mon, 26 May 2025 13:04:25 +1000 Subject: [PATCH 1/3] Add metrics for distince active workspace users --- .../events/update_workspace_to_active.yml | 19 ++++++++++++++ ...inct_user_id_from_workspace_operations.yml | 26 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 ee/config/events/update_workspace_to_active.yml create mode 100644 ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml diff --git a/ee/config/events/update_workspace_to_active.yml b/ee/config/events/update_workspace_to_active.yml new file mode 100644 index 00000000000000..b4c8e7a898ec21 --- /dev/null +++ b/ee/config/events/update_workspace_to_active.yml @@ -0,0 +1,19 @@ +--- +description: Tracks updates when set workspaces active +internal_events: true +action: update_workspace_to_active +identifiers: +- project +- namespace +- user +additional_properties: + label: + description: started or restarted workspace +product_group: remote_development +product_categories: +- workspaces +milestone: '18.1' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/191902 +tiers: +- premium +- ultimate diff --git a/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml b/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml new file mode 100644 index 00000000000000..a36c7f3727e082 --- /dev/null +++ b/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml @@ -0,0 +1,26 @@ +--- +key_path: redis_hll_counters.count_distinct_user_id_from_workspace_operations +description: Count of unique users for worksapce operations +product_group: remote_development +product_categories: +- workspaces +performance_indicator_type: [] +value_type: number +status: active +milestone: '18.1' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/192463 +time_frame: +- 28d +- 7d +data_source: internal_events +data_category: optional +tiers: +- premium +- ultimate +events: +- name: click_open_workspace_button + unique: user.id +- name: create_workspace_result + unique: user.id +- name: update_workspace_to_active + unique: user.id -- GitLab From d55594925e70277946598c20a1ac2f146637a8c3 Mon Sep 17 00:00:00 2001 From: Zhaochen Li Date: Wed, 28 May 2025 16:14:57 +1000 Subject: [PATCH 2/3] Update active user metric to latest --- .../events/update_workspace_to_active.yml | 19 ------------------- ...inct_user_id_from_workspace_operations.yml | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 ee/config/events/update_workspace_to_active.yml diff --git a/ee/config/events/update_workspace_to_active.yml b/ee/config/events/update_workspace_to_active.yml deleted file mode 100644 index b4c8e7a898ec21..00000000000000 --- a/ee/config/events/update_workspace_to_active.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -description: Tracks updates when set workspaces active -internal_events: true -action: update_workspace_to_active -identifiers: -- project -- namespace -- user -additional_properties: - label: - description: started or restarted workspace -product_group: remote_development -product_categories: -- workspaces -milestone: '18.1' -introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/191902 -tiers: -- premium -- ultimate diff --git a/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml b/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml index a36c7f3727e082..224ddc03a4fe1c 100644 --- a/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml +++ b/ee/config/metrics/counts_all/count_distinct_user_id_from_workspace_operations.yml @@ -22,5 +22,5 @@ events: unique: user.id - name: create_workspace_result unique: user.id -- name: update_workspace_to_active +- name: track_started_workspaces unique: user.id -- GitLab From 71ec57cd7cb10a66772e982d893af5b3051c46d6 Mon Sep 17 00:00:00 2001 From: Zhaochen Li Date: Wed, 28 May 2025 16:30:01 +1000 Subject: [PATCH 3/3] Add total workspace created metric --- .../count_total_workspaces_created.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ee/config/metrics/counts_all/count_total_workspaces_created.yml diff --git a/ee/config/metrics/counts_all/count_total_workspaces_created.yml b/ee/config/metrics/counts_all/count_total_workspaces_created.yml new file mode 100644 index 00000000000000..8d8f5cc46b05b6 --- /dev/null +++ b/ee/config/metrics/counts_all/count_total_workspaces_created.yml @@ -0,0 +1,22 @@ +--- +key_path: counts.count_total_workspaces_created +description: Count of Total Workspaces Created +product_group: remote_development +product_categories: +- workspaces +performance_indicator_type: [] +value_type: number +status: active +milestone: '18.1' +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/192463 +time_frame: +- 28d +- 7d +- all +data_source: internal_events +data_category: optional +tiers: +- premium +- ultimate +events: +- name: create_workspace_result -- GitLab