diff options
-rw-r--r-- | doc/user/admin_area/settings/usage_statistics.md | 3 | ||||
-rw-r--r-- | lib/gitlab/usage_data.rb | 1 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/doc/user/admin_area/settings/usage_statistics.md b/doc/user/admin_area/settings/usage_statistics.md index 4ad4a174640..6c9352332c2 100644 --- a/doc/user/admin_area/settings/usage_statistics.md +++ b/doc/user/admin_area/settings/usage_statistics.md @@ -62,6 +62,7 @@ The total number of the following is sent back to GitLab Inc.: - Deploy keys - Pages - Project Services +- Projects using the Prometheus service - Issue Boards - CI Runners - Deployments @@ -75,7 +76,7 @@ The total number of the following is sent back to GitLab Inc.: - Remote mirrors - Web hooks -Also, we track if you've installed Mattermost with GitLab. +Also, we track if you've installed Mattermost with GitLab. For example: `"mattermost_enabled":true"`. ## Privacy policy diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index 008c3d994db..6aca6db3123 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -36,6 +36,7 @@ module Gitlab notes: Note.count, pages_domains: PagesDomain.count, projects: Project.count, + projects_prometheus_active: PrometheusService.active.count, protected_branches: ProtectedBranch.count, releases: Release.count, services: Service.where(active: true).count, diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index 7ae26081022..7f21288cf88 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -44,6 +44,7 @@ describe Gitlab::UsageData do milestones notes projects + projects_prometheus_active pages_domains protected_branches releases |