Skip to content

Add `counts.groups_with_enterprise_users` metric

What does this MR do and why?

This MR adds counts.groups_with_enterprise_users metric to understand the adoption of Enterprise Users.

Related to https://gitlab.com/gitlab-org/gitlab/-/issues/481647 and https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/8654.

DB

Query plan for new query

SELECT COUNT(DISTINCT "user_details"."enterprise_group_id") FROM "user_details" WHERE "user_details"."enterprise_group_id" IS NOT NULL;

https://console.postgres.ai/gitlab/gitlab-production-main/sessions/32655/commands/100746

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

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

Edited by Bogdan Denkovych

Merge request reports

Loading