Migrate Service Ping to use metric instrumentation classes
## Overview
- Generate Usage Ping from Metrics YML
~~- Segment Usage Ping into separate jobs to make it fail safe.~~
~~- Segment Usage Ping into instance and group level metrics~~
Current Progress of the migration to use instrumentation classes: file:///Users/alina/Documents/work/metric-dictionary/public/index.html
Using this labels for this epic:
- Priority 1: required for future metrics, has a large impact on the direction. Without this, nothing would work in the end.
- Priority 2: Could change future direction
- Priority 3: Potential dependencies on other parts
- Priority 4: Can be picked up any time
## Update 2021-12-14
There is no strong reason to migrate all the metrics in service ping at this moment. We close the related epics and issues created to migrate all metrics to instrumentation classes.
## Update 2022-03-30
We deprecate `usage_data.rb` and from now on only instrumentation classes after having https://gitlab.com/gitlab-org/gitlab/-/issues/346640 in place. See [docs](https://docs.gitlab.com/ee/development/service_ping/implement.html#instrumentation-classes)
Recommend to add new instrumentation classes when we touch the `usage_data.rb`
There is no active work to migrate all the metrics to instrumentation classes.[ The new direction would be to migrate metrics when a metric is updated in usage_data.rb](https://gitlab.com/groups/gitlab-org/-/epics/5942#note_774508767)
epic