Commit f00f2638 authored by Luis Mejia's avatar Luis Mejia Committed by Alper Akgun

Add instrumentation_class to common event and epic_boards_usage metrics

parent d59437fc
...@@ -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:
- p_terraform_state_api_unique_users
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: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- o_pipeline_authoring_unique_users_committing_ciconfigfile
distribution: distribution:
- ee - ee
- ce - ce
......
...@@ -12,6 +12,10 @@ milestone: "13.10" ...@@ -12,6 +12,10 @@ milestone: "13.10"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54707 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54707
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -12,6 +12,10 @@ milestone: '13.11' ...@@ -12,6 +12,10 @@ milestone: '13.11'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57133 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57133
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- users_expanding_secure_security_report
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -12,7 +12,12 @@ status: data_available ...@@ -12,7 +12,12 @@ status: data_available
milestone: "13.12" milestone: "13.12"
introduced_by_url: introduced_by_url:
time_frame: 28d time_frame: 28d
data_source: data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- o_pipeline_authoring_unique_users_committing_ciconfigfile
- o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile
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:
- o_pipeline_authoring_unique_users_committing_ciconfigfile
distribution: distribution:
- ee - ee
- ce - ce
......
...@@ -12,6 +12,10 @@ milestone: "13.10" ...@@ -12,6 +12,10 @@ milestone: "13.10"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54707 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54707
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -12,6 +12,10 @@ milestone: '13.11' ...@@ -12,6 +12,10 @@ milestone: '13.11'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57133 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57133
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- users_expanding_secure_security_report
distribution: distribution:
- ce - ce
- ee - ee
......
...@@ -12,7 +12,12 @@ status: data_available ...@@ -12,7 +12,12 @@ status: data_available
milestone: "13.12" milestone: "13.12"
introduced_by_url: introduced_by_url:
time_frame: 7d time_frame: 7d
data_source: data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- o_pipeline_authoring_unique_users_committing_ciconfigfile
- o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile
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: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- i_ci_secrets_management_vault_build_created
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -15,6 +15,10 @@ milestone: "13.12" ...@@ -15,6 +15,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_creating_epic_boards
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -15,6 +15,10 @@ milestone: "13.12" ...@@ -15,6 +15,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_viewing_epic_boards
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -15,6 +15,10 @@ milestone: "13.12" ...@@ -15,6 +15,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 28d time_frame: 28d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_updating_epic_board_names
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -12,7 +12,13 @@ status: data_available ...@@ -12,7 +12,13 @@ status: data_available
milestone: "13.12" milestone: "13.12"
introduced_by_url: introduced_by_url:
time_frame: 28d time_frame: 28d
data_source: data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_creating_epic_boards
- g_project_management_users_viewing_epic_boards
- g_project_management_users_updating_epic_board_names
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_ci_secrets_management_vault_build_created
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:
- p_terraform_state_api_unique_users
distribution: distribution:
- ee - ee
tier: [] tier: []
......
...@@ -15,6 +15,10 @@ milestone: "13.12" ...@@ -15,6 +15,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_creating_epic_boards
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -14,6 +14,10 @@ milestone: "13.12" ...@@ -14,6 +14,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_viewing_epic_boards
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -14,6 +14,10 @@ milestone: "13.12" ...@@ -14,6 +14,10 @@ milestone: "13.12"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60357
time_frame: 7d time_frame: 7d
data_source: redis_hll data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_updating_epic_board_names
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -12,7 +12,13 @@ status: data_available ...@@ -12,7 +12,13 @@ status: data_available
milestone: "13.12" milestone: "13.12"
introduced_by_url: introduced_by_url:
time_frame: 7d time_frame: 7d
data_source: data_source: redis_hll
instrumentation_class: RedisHLLMetric
options:
events:
- g_project_management_users_creating_epic_boards
- g_project_management_users_viewing_epic_boards
- g_project_management_users_updating_epic_board_names
distribution: distribution:
- ee - ee
tier: tier:
......
...@@ -54,6 +54,25 @@ RSpec.describe Gitlab::UsageDataMetrics do ...@@ -54,6 +54,25 @@ RSpec.describe Gitlab::UsageDataMetrics do
]) ])
end end
it 'includes i_ci_secrets_management_vault_build_created monthly and weekly keys' do
expect(subject[:redis_hll_counters][:ci_secrets_management].keys).to contain_exactly(*[
:i_ci_secrets_management_vault_build_created_monthly, :i_ci_secrets_management_vault_build_created_weekly
])
end
it 'includes epic_boards_usage monthly and weekly keys' do
expect(subject[:redis_hll_counters][:epic_boards_usage].keys).to contain_exactly(*[
:g_project_management_users_creating_epic_boards_monthly, :g_project_management_users_creating_epic_boards_weekly,
:g_project_management_users_viewing_epic_boards_monthly, :g_project_management_users_viewing_epic_boards_weekly,
:g_project_management_users_updating_epic_board_names_monthly, :g_project_management_users_updating_epic_board_names_weekly,
:epic_boards_usage_total_unique_counts_monthly, :epic_boards_usage_total_unique_counts_weekly
])
end
it 'includes terraform weekly key' do
expect(subject[:redis_hll_counters][:terraform].keys).to include(:p_terraform_state_api_unique_users_weekly)
end
it 'includes issues_edit monthly and weekly keys' do it 'includes issues_edit monthly and weekly keys' do
expect(subject[:redis_hll_counters][:issues_edit].keys).to include( expect(subject[:redis_hll_counters][:issues_edit].keys).to include(
:g_project_management_issue_iteration_changed_monthly, :g_project_management_issue_iteration_changed_weekly, :g_project_management_issue_iteration_changed_monthly, :g_project_management_issue_iteration_changed_weekly,
......
...@@ -87,6 +87,24 @@ RSpec.describe Gitlab::UsageDataMetrics do ...@@ -87,6 +87,24 @@ RSpec.describe Gitlab::UsageDataMetrics do
]) ])
end end
it 'includes terraform monthly key' do
expect(subject[:redis_hll_counters][:terraform].keys).to include(:p_terraform_state_api_unique_users_monthly)
end
it 'includes terraform monthly and weekly keys' do
expect(subject[:redis_hll_counters][:pipeline_authoring].keys).to contain_exactly(*[
:o_pipeline_authoring_unique_users_committing_ciconfigfile_monthly, :o_pipeline_authoring_unique_users_committing_ciconfigfile_weekly,
:o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile_monthly, :o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile_weekly,
:pipeline_authoring_total_unique_counts_monthly, :pipeline_authoring_total_unique_counts_weekly
])
end
it 'includes users_expanding_secure_security_report monthly and weekly keys' do
expect(subject[:redis_hll_counters][:secure].keys).to contain_exactly(*[
:users_expanding_secure_security_report_monthly, :users_expanding_secure_security_report_weekly
])
end
it 'includes issues_edit monthly and weekly keys' do it 'includes issues_edit monthly and weekly keys' do
expect(subject[:redis_hll_counters][:issues_edit].keys).to include( expect(subject[:redis_hll_counters][:issues_edit].keys).to include(
:g_project_management_issue_title_changed_monthly, :g_project_management_issue_title_changed_weekly, :g_project_management_issue_title_changed_monthly, :g_project_management_issue_title_changed_weekly,
......
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