Commit 17944282 authored by Arturo Herrero's avatar Arturo Herrero

Merge branch 'am-improve-metrics-generator' into 'master'

Improve metrics generator

See merge request gitlab-org/gitlab!54064
parents 1b7abfe7 192951b4
...@@ -59,8 +59,13 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1521 ...@@ -59,8 +59,13 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1521
product_group: group::product intelligence product_group: group::product intelligence
time_frame: none time_frame: none
data_source: database data_source: database
distribution: [ee, ce] distribution:
tier: ['free', 'starter', 'premium', 'ultimate', 'bronze', 'silver', 'gold'] - ee
- ce
tier:
- free
- premium
- ultimate
``` ```
## Create a new metric definition ## Create a new metric definition
......
---
# See Usage Ping metrics dictionary docs https://docs.gitlab.com/ee/development/usage_ping/metrics_dictionary.html # See Usage Ping metrics dictionary docs https://docs.gitlab.com/ee/development/usage_ping/metrics_dictionary.html
key_path: <%= key_path %> key_path: <%= key_path %>
description: description:
...@@ -7,10 +8,14 @@ product_group: ...@@ -7,10 +8,14 @@ product_group:
product_category: product_category:
value_type: <%= value_type %> value_type: <%= value_type %>
status: implemented status: implemented
milestone: milestone: <%= milestone %>
introduced_by_url: introduced_by_url:
time_frame: <%= time_frame %> time_frame: <%= time_frame %>
data_source: data_source:
distribution: <%= distribution %> distribution:
# tier: ['free', 'premium', 'ultimate'] <%= distribution %>
tier: # Add here corresponding tiers
# tier:
# - free
# - premium
# - ultimate
...@@ -45,9 +45,13 @@ module Gitlab ...@@ -45,9 +45,13 @@ module Gitlab
end end
def distribution def distribution
value = ['ce'] value = ['- ce']
value << 'ee' if ee? value << '- ee' if ee?
value value.join("\n")
end
def milestone
Gitlab::VERSION.match('(\d+\.\d+)').captures.first
end end
private private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment