2021-03-30 12:10:51 +00:00
|
|
|
# Aggregated metrics that include EE only event names within `events:` attribute have to be defined at ee/config/metrics/aggregates/common.yml
|
2021-03-10 15:09:11 +00:00
|
|
|
# instead of this file.
|
2022-02-16 12:13:53 +00:00
|
|
|
# - name: unique name of aggregated metric
|
2020-11-03 00:08:51 +00:00
|
|
|
# operator: aggregation operator. Valid values are:
|
2020-11-17 18:09:20 +00:00
|
|
|
# - "OR": counts unique elements that were observed triggering any of following events
|
|
|
|
# - "AND": counts unique elements that were observed triggering all of following events
|
2020-11-03 00:08:51 +00:00
|
|
|
# events: list of events names to aggregate into metric. All events in this list must have the same 'redis_slot' and 'aggregation' attributes
|
2020-11-11 15:08:46 +00:00
|
|
|
# see from lib/gitlab/usage_data_counters/known_events/ for the list of valid events.
|
2021-02-09 12:09:48 +00:00
|
|
|
# source: defines which datasource will be used to locate events that should be included in aggregated metric. Valid values are:
|
|
|
|
# - database
|
|
|
|
# - redis
|
2021-03-08 18:09:12 +00:00
|
|
|
# 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
|
2020-11-16 21:09:02 +00:00
|
|
|
# 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.
|
2020-11-03 00:08:51 +00:00
|
|
|
---
|
2021-01-08 00:10:44 +00:00
|
|
|
- name: compliance_features_track_unique_visits_union
|
|
|
|
operator: OR
|
2021-02-09 12:09:48 +00:00
|
|
|
source: redis
|
2021-03-08 18:09:12 +00:00
|
|
|
time_frame: [7d, 28d]
|
2021-03-17 12:09:19 +00:00
|
|
|
events:
|
|
|
|
- 'g_compliance_audit_events'
|
|
|
|
- 'g_compliance_dashboard'
|
|
|
|
- 'i_compliance_audit_events'
|
|
|
|
- 'a_compliance_audit_events_api'
|
|
|
|
- 'i_compliance_credential_inventory'
|
2020-11-24 00:09:13 +00:00
|
|
|
- name: incident_management_alerts_total_unique_counts
|
|
|
|
operator: OR
|
2021-02-09 12:09:48 +00:00
|
|
|
source: redis
|
2021-03-08 18:09:12 +00:00
|
|
|
time_frame: [7d, 28d]
|
2021-03-17 12:09:19 +00:00
|
|
|
events:
|
|
|
|
- 'incident_management_alert_status_changed'
|
|
|
|
- 'incident_management_alert_assigned'
|
|
|
|
- 'incident_management_alert_todo'
|
|
|
|
- 'incident_management_alert_create_incident'
|
2020-11-24 00:09:13 +00:00
|
|
|
- name: incident_management_incidents_total_unique_counts
|
|
|
|
operator: OR
|
2021-02-09 12:09:48 +00:00
|
|
|
source: redis
|
2021-03-08 18:09:12 +00:00
|
|
|
time_frame: [7d, 28d]
|
2021-03-17 12:09:19 +00:00
|
|
|
events:
|
|
|
|
- 'incident_management_incident_created'
|
|
|
|
- 'incident_management_incident_reopened'
|
|
|
|
- 'incident_management_incident_closed'
|
|
|
|
- 'incident_management_incident_assigned'
|
|
|
|
- 'incident_management_incident_todo'
|
|
|
|
- 'incident_management_incident_comment'
|
|
|
|
- 'incident_management_incident_zoom_meeting'
|
|
|
|
- 'incident_management_incident_published'
|
|
|
|
- 'incident_management_incident_relate'
|
|
|
|
- 'incident_management_incident_unrelate'
|
|
|
|
- 'incident_management_incident_change_confidential'
|
2021-02-10 15:11:19 +00:00
|
|
|
- name: i_testing_paid_monthly_active_user_total
|
|
|
|
operator: OR
|
|
|
|
source: redis
|
2021-03-08 18:09:12 +00:00
|
|
|
time_frame: [7d, 28d]
|
2021-03-17 12:09:19 +00:00
|
|
|
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'
|
2022-03-04 18:20:01 +00:00
|
|
|
- name: xmau_plan
|
|
|
|
operator: OR
|
|
|
|
source: redis
|
|
|
|
time_frame: [7d, 28d]
|
|
|
|
events:
|
|
|
|
- users_creating_work_items
|
|
|
|
- users_updating_work_item_title
|
|
|
|
feature_flag: track_work_items_activity
|
|
|
|
- name: xmau_project_management
|
|
|
|
operator: OR
|
|
|
|
source: redis
|
|
|
|
time_frame: [7d, 28d]
|
|
|
|
events:
|
|
|
|
- users_creating_work_items
|
|
|
|
- users_updating_work_item_title
|
|
|
|
feature_flag: track_work_items_activity
|
|
|
|
- name: users_work_items
|
|
|
|
operator: OR
|
|
|
|
source: redis
|
|
|
|
time_frame: [7d, 28d]
|
|
|
|
events:
|
|
|
|
- users_creating_work_items
|
|
|
|
- users_updating_work_item_title
|
|
|
|
feature_flag: track_work_items_activity
|