Commit 46f99172 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '333117-migrate-search-events-redishll' into 'master'

Update search category metrics to include instrumentation_class

See merge request gitlab-org/gitlab!67184
parents 5bba25f3 7df9680f
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -10,6 +10,12 @@ value_type: number ...@@ -10,6 +10,12 @@ value_type: number
status: data_available status: data_available
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
- i_search_advanced
- i_search_paid
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -10,6 +10,12 @@ value_type: number ...@@ -10,6 +10,12 @@ value_type: number
status: data_available status: data_available
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
- i_search_advanced
- i_search_paid
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
distribution: distribution:
- ee - ee
- ce - ce
......
...@@ -10,6 +10,12 @@ value_type: number ...@@ -10,6 +10,12 @@ value_type: number
status: data_available status: data_available
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
- i_search_advanced
- i_search_paid
distribution: distribution:
- ee - ee
- ce - ce
......
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_advanced
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_advanced
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -10,6 +10,12 @@ value_type: number ...@@ -10,6 +10,12 @@ value_type: number
status: data_available status: data_available
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_total
- i_search_advanced
- i_search_paid
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_paid
distribution: distribution:
- ee - ee
distribution: distribution:
......
...@@ -10,6 +10,10 @@ value_type: number ...@@ -10,6 +10,10 @@ value_type: number
status: data_available status: data_available
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_search_paid
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -32,6 +32,15 @@ RSpec.describe Gitlab::UsageDataMetrics do ...@@ -32,6 +32,15 @@ RSpec.describe Gitlab::UsageDataMetrics do
:compliance_total_unique_counts_monthly, :compliance_total_unique_counts_weekly :compliance_total_unique_counts_monthly, :compliance_total_unique_counts_weekly
]) ])
end end
it 'includes search monthly and weekly keys' do
expect(subject[:redis_hll_counters][:search].keys).to contain_exactly(*[
:i_search_total_monthly, :i_search_total_weekly,
:i_search_advanced_monthly, :i_search_advanced_weekly,
:i_search_paid_monthly, :i_search_paid_weekly,
:search_total_unique_counts_monthly, :search_total_unique_counts_weekly
])
end
end end
end end
end end
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