Migrate code_review aggregated metrics
What does this MR do and why?
In order to support cross system compatibility migrate aggregated metrics to new syntax. Metrics were migrated according to https://docs.gitlab.com/ee/development/service_ping/metrics_instrumentation.html#aggregated-metrics
Resolves subtask from #373830 (comment 1126596388)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
In rails console
- Seed data
Gitlab::UsageDataCounters::HLLRedisCounter.track_event('i_code_review_edit_mr_desc', values: 1, time: 6.days.ago)
Gitlab::UsageDataCounters::HLLRedisCounter.track_event('i_code_review_user_create_mr', values: 2, time: 6.days.ago)
- Get service ping payload
payload = ServicePing::BuildPayload.new.execute
- Get metric data
payload.dig(*"counts_weekly.aggregated_metrics.code_review_group_monthly_active_users".split('.'))
You can repeat step 2 and 3 on both master and feature branch to compare that there are no changes to returned data
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.