Add aggregated metrics information to metrics YAML definitions
Background
Because Redis metric aggregation feature was created before merics yml definitions
and this caused legacy duplication and distribution of information. Event can be aggregated into metric with 3 of following ways:
- Total metrics - already deprecated feature, yet still used by some older metrics
- Aggregated metrics - via yaml config files at https://gitlab.com/gitlab-org/gitlab/-/tree/master/config/metrics/aggregates and https://gitlab.com/gitlab-org/gitlab/-/tree/master/ee/config/metrics/aggregates
- Metric yaml deifnition - via
option.events
This makes create confusing experience for developers, and makes it harder to utilize aggregation information for any downstream systems as discussed at #370462 (comment 1067324388)
Goal
Add support to mirror all information from aggregated metrics configuration into metrics YAML definition
This issue was extracted from #370963 (closed) that covers broader effort to unify redis metrics definitions
Edited by Mikołaj Wawrzyniak