Add EE usage ping
This MR implements the EE usage ping as a sidekiq-cron async task as discussed in #380 (closed). Currently we report:
- Active user count
- Max historical active user count
- License data (e.g. licensee, add-ons, etc.)
Screenshot:
Merge request reports
Activity
Added 1 commit:
- 8623ffc8 - Add migration file for usage ping flag
Reassigned to @DouweM
@DouweM Before I implement the version.gitlab.com changes, would like you to take a look and see what you think.
Added 1 commit:
- cff6fc54 - Get crontab format right
- app/workers/gitlab_usage_ping_worker.rb 0 → 100644
18 body: data.to_json, 19 headers: { 'Content-type' => 'application/json' } 20 ) 21 end 22 23 def try_obtain_lease 24 Gitlab::ExclusiveLease.new('gitlab_usage_ping_worker:ping', timeout: LEASE_TIMEOUT).try_obtain 25 end 26 27 def data 28 usage_data = { version: Gitlab::VERSION } 29 usage_data[:active_users] = current_active_user_count 30 license = License.current 31 32 if license 33 usage_data[:historical_max_users] = max_historical_user_count @stanhu Approach looks good to me!
Reassigned to @stanhu
Added 1 commit:
- 54efdba0 - Add license fingerprint and catch errors in HTTParty
Added 180 commits:
-
54efdba0...1c04b072 - 175 commits from branch
master
- f493c9a8 - Add async task that reports EE usage every week
- 56e6e8c5 - Add setting to disable usage ping
- f8a1a274 - Add migration file for usage ping flag
- 3d4fce06 - Get crontab format right
- 1cbf3827 - Add license fingerprint and catch errors in HTTParty
Toggle commit list-
54efdba0...1c04b072 - 175 commits from branch
Reassigned to @DouweM
Added 1 commit:
- fae2e268 - Add license fingerprint and catch errors in HTTParty
Added 1 commit:
- 150aee0e - Add license fingerprint and catch errors in HTTParty
Added 1 commit:
- 87973ebc - Rename usage_ping URL to usage_data
Added 1 commit:
- 0a3f398a - Rename usage_ping URL to usage_data
Added 1 commit:
- 8d8c6ced - Be consistent and make active_users active_user_count
Reassigned to @stanhu
Reassigned to @DouweM
mentioned in issue #380 (closed)
Milestone changed to %8.10
mentioned in commit 93273e15
mentioned in commit 7414d2c5
mentioned in merge request gitlab-com/www-gitlab-com!2497 (merged)
@zj Good point, I'll add that.
I'm waiting to sort out https://gitlab.com/gitlab-org/gitlab-ce/issues/20126 and then we can add docs about this.
added Enterprise Edition label
mentioned in issue #338461 (closed)