summaryrefslogtreecommitdiff
path: root/config/metrics/aggregates/common.yml
blob: 35311858c64da5772de5cba578816d76698d2b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Aggregated metrics that include EE only event names within `events:` attribute have to be defined at ee/config/metrics/aggregates/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
#             - "AND": counts unique elements that were observed triggering all of following events
#  events: list of events names to aggregate into metric. All events in this list must have the same 'redis_slot' and 'aggregation' attributes
#           see from lib/gitlab/usage_data_counters/known_events/ for the list of valid events.
#  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.
---
- 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'
    - 'incident_management_alert_todo'
    - 'incident_management_alert_create_incident'
- name: incident_management_incidents_total_unique_counts
  operator: OR
  source: redis
  time_frame: [7d, 28d]
  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'
- name: xmau_plan
  operator: OR
  source: redis
  time_frame: [7d, 28d]
  events:
    - users_creating_work_items
    - users_updating_work_item_title
    - users_updating_work_item_dates
  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
    - users_updating_work_item_dates
  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
    - users_updating_work_item_dates
  feature_flag: track_work_items_activity