diff options
-rw-r--r-- | doc/user/admin_area/settings/usage_statistics.md | 3 | ||||
-rw-r--r-- | lib/gitlab/usage_data.rb | 3 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/doc/user/admin_area/settings/usage_statistics.md b/doc/user/admin_area/settings/usage_statistics.md index 70dea71d3c7..4ad4a174640 100644 --- a/doc/user/admin_area/settings/usage_statistics.md +++ b/doc/user/admin_area/settings/usage_statistics.md @@ -75,6 +75,9 @@ 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. +For example: `"mattermost_enabled":true"`. + ## Privacy policy GitLab Inc. does **not** collect any sensitive information, like project names diff --git a/lib/gitlab/usage_data.rb b/lib/gitlab/usage_data.rb index e5c1407d8fe..ae1ae82ab4c 100644 --- a/lib/gitlab/usage_data.rb +++ b/lib/gitlab/usage_data.rb @@ -47,7 +47,8 @@ module Gitlab def license_usage_data usage_data = { version: Gitlab::VERSION, active_user_count: User.active.count, - recorded_at: Time.now } + recorded_at: Time.now, + mattermost_enabled: Gitlab.config.mattermost.enabled } usage_data end diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index badb8e3c7ae..2cb5d49c4c1 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -14,6 +14,7 @@ describe Gitlab::UsageData do counts version recorded_at + mattermost_enabled )) end |