diff options
Diffstat (limited to 'lib/gitlab/usage_data_counters/aggregated_metrics/common.yml')
-rw-r--r-- | lib/gitlab/usage_data_counters/aggregated_metrics/common.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/lib/gitlab/usage_data_counters/aggregated_metrics/common.yml b/lib/gitlab/usage_data_counters/aggregated_metrics/common.yml index 4d92202e7fd..73a55b5d5fa 100644 --- a/lib/gitlab/usage_data_counters/aggregated_metrics/common.yml +++ b/lib/gitlab/usage_data_counters/aggregated_metrics/common.yml @@ -1,3 +1,5 @@ +# Aggregated metrics that include EE only event names within `events:` attribute have to be defined at ee/lib/gitlab/usage_data_counters/aggregated_metrics/common.yml +# instead of this file. #- name: unique name of aggregated metric # operator: aggregation operator. Valid values are: # - "OR": counts unique elements that were observed triggering any of following events @@ -7,6 +9,10 @@ # source: defines which datasource will be used to locate events that should be included in aggregated metric. Valid values are: # - database # - redis +# time_frame: defines time frames for aggregated metrics: +# - 7d - last 7 days +# - 28d - last 28 days +# - all - all historical available data, this time frame is not available for redis source # feature_flag: name of development feature flag that will be checked before metrics aggregation is performed. # Corresponding feature flag should have `default_enabled` attribute set to `false`. # This attribute is OPTIONAL and can be omitted, when `feature_flag` is missing no feature flag will be checked. @@ -14,18 +20,22 @@ - name: compliance_features_track_unique_visits_union operator: OR source: redis + time_frame: [7d, 28d] events: ['g_compliance_audit_events', 'g_compliance_dashboard', 'i_compliance_audit_events', 'a_compliance_audit_events_api', 'i_compliance_credential_inventory'] - name: product_analytics_test_metrics_union operator: OR source: redis + time_frame: [7d, 28d] events: ['i_search_total', 'i_search_advanced', 'i_search_paid'] - name: product_analytics_test_metrics_intersection operator: AND source: redis + time_frame: [7d, 28d] events: ['i_search_total', 'i_search_advanced', 'i_search_paid'] - name: incident_management_alerts_total_unique_counts operator: OR source: redis + time_frame: [7d, 28d] events: [ 'incident_management_alert_status_changed', 'incident_management_alert_assigned', @@ -35,6 +45,7 @@ - name: incident_management_incidents_total_unique_counts operator: OR source: redis + time_frame: [7d, 28d] events: [ 'incident_management_incident_created', 'incident_management_incident_reopened', @@ -51,10 +62,11 @@ - name: i_testing_paid_monthly_active_user_total operator: OR source: redis + time_frame: [7d, 28d] events: [ - 'i_testing_web_performance_widget_total', - 'i_testing_full_code_quality_report_total', - 'i_testing_group_code_coverage_visit_total', - 'i_testing_load_performance_widget_total', - 'i_testing_metrics_report_widget_total' -] + 'i_testing_web_performance_widget_total', + 'i_testing_full_code_quality_report_total', + 'i_testing_group_code_coverage_visit_total', + 'i_testing_load_performance_widget_total', + 'i_testing_metrics_report_widget_total' + ] |