Migrate total metrics (1st batch)
What does this MR do and why?
Use new recommended aggregated metric syntax for first batch of total 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_search_total', values: 1, time: 3.days.ago)
Gitlab::UsageDataCounters::HLLRedisCounter.track_event('i_search_advanced', values: 2, time: 3.days.ago)
- Get service ping payload
payload = ServicePing::BuildPayload.new.execute
- Get metric data
payload.dig(*"search_unique_visits.search_unique_visits_for_any_target_monthly".split('.'))
You can repeat step 2 and 3 on both master and feature branch to compare that there are no changes to returned data
You can test any metric in this MR in the same way, just use any combination of the options.events:
in step 1st and metric key_path
in step 3rd
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.