diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-15 09:10:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-15 09:10:15 +0300 |
commit | 500f4288e71e39d6cabbb0faad0e6170a8e792b4 (patch) | |
tree | 0724c43280d0c01f24f19a73febd7e1c6ffb91cc /scripts | |
parent | d0830d520a7eb2be16338f7f36158b522deb68ec (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/internal_events/cli/metric.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/internal_events/cli/metric.rb b/scripts/internal_events/cli/metric.rb index 63961d29810..0d39b0b4e2b 100755 --- a/scripts/internal_events/cli/metric.rb +++ b/scripts/internal_events/cli/metric.rb @@ -16,7 +16,6 @@ module InternalEventsCli :data_source, :data_category, :product_category, - :instrumentation_class, :distribution, :tier, :options, @@ -50,7 +49,6 @@ module InternalEventsCli .merge(to_h.compact) .merge( key_path: key_path, - instrumentation_class: instrumentation_class, events: events) .slice(*NEW_METRIC_FIELDS) .transform_keys(&:to_s) @@ -82,10 +80,6 @@ module InternalEventsCli self[:key_path] ||= "#{key_path_prefix}.#{key}" end - def instrumentation_class - self[:instrumentation_class] ||= identifier ? 'RedisHLLMetric' : 'TotalCountMetric' - end - def events self[:events] ||= actions.map do |action| if identifier @@ -100,10 +94,9 @@ module InternalEventsCli end def key_path_prefix - case instrumentation_class - when 'RedisHLLMetric' + if identifier 'redis_hll_counters' - when 'TotalCountMetric' + else 'counts' end end |