Monitor usage ping on 13.3

This is a followup for #222330 (closed) to continue monitoring usage ping

Transferred issues

Fix and check new usage counters which time out

New counters

How to test

  1. In versions app console RawUsageData.find(uuid: '')
  2. on gprd rails console
Time.now
[Time.now, aapayload = Gitlab::UsageData.to_json(force_refresh: true), Time.now]
puts aapayload

# start: 2020-07-06 07:06:02 +0000
# finish: 2020-07-07 07:04:06 +0000


## Post to versions app
aares = Gitlab::HTTP.post( 'https://version.gitlab.com/usage_data', body: aapayload, allow_local_requests: true, headers: { 'Content-type' => 'application/json' })

usage_data_id: 21635202

/bin/herokuish procfile exec rails console

puts UsageData.select(:recorded_at, :app_server_type).where(hostname: 'gitlab.com', uuid: 'ea8bf810-1d6f-4a6a-b4fd-93e8cbd8b57f').order('id desc').limit(5).to_json

puts UsageData.find(21635202).raw_usage_data.payload.to_json

cc @a_akgun @ali-gitlab

Edited by Alper Akgun