Commit 1c703485 authored by alinamihaila's avatar alinamihaila

Import remaining metrics definitions

  - Add package and quick actions
  metrics definitions
  - Update Metrics Dictionary
parent 6b1c14d0
---
title: Add package and quickaction metrics to Metrics Dictionary
merge_request: 55846
author:
type: added
---
key_path: redis_hll_counters.quickactions.i_quickactions_invite_email_single_monthly
description:
description: Unique users using the /invite_email quick action to add a single email participant to an issue within 28 days
product_section: dev
product_stage: plan
product_group: group::product planning
......@@ -13,6 +13,8 @@ time_frame: 28d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
skip_validation: true
- premium
- ultimate
---
key_path: redis_hll_counters.quickactions.i_quickactions_invite_email_multiple_monthly
description:
description: Unique users using the /invite_email quick action to add a multiple email participants to an issue within 28 days
product_section: dev
product_stage: plan
product_group: group::product planning
......@@ -15,4 +15,7 @@ distribution:
- ce
tier:
- free
skip_validation: true
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.deploy_token_packages.i_package_rubygems_deploy_token_monthly
description: Distinct user count events for RubyGems packages in recent 28 days
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: 28d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.user_packages.i_package_rubygems_user_monthly
description: Distinct user count events for RubyGems packages in recent 28 days
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: 28d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.quickactions.i_quickactions_invite_email_single_weekly
description: Unique users using the /invite_email quick action to add a single email participant to an issue within 7 days
product_section: dev
product_stage: plan
product_group: group::product planning
product_category: issue_tracking
value_type: number
status: data_available
milestone: "13.10"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49264
time_frame: 7d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.quickactions.i_quickactions_invite_email_multiple_weekly
description: Unique users using the /invite_email quick action to add a multiple email participants to an issue within 7 days
product_section: dev
product_stage: plan
product_group: group::product planning
product_category: issue_tracking
value_type: number
status: data_available
milestone: "13.10"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49264
time_frame: 7d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.deploy_token_packages.i_package_rubygems_deploy_token_weekly
description: Distinct RubyGems pakages deployed in recent 7 days
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: 7d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: redis_hll_counters.user_packages.i_package_rubygems_user_weekly
description: Distinct user count events for RubyGems packages in recent 7 days
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: 7d
data_source: redis_hll
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: counts.package_events_i_package_rubygems_delete_package
description: Total count of RubyGems packages delete events
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: all
data_source: redis
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: counts.package_events_i_package_rubygems_pull_package
description: Total count of pull RubyGems packages events
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
time_frame: all
data_source: redis
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
---
key_path: counts.package_events_i_package_rubygems_push_package
description: Total count of push RubyGems packages events
product_section: ops
product_stage: package
product_group: group::package
product_category: package_registry
value_type: number
status: data_available
time_frame: all
milestone: '13.10'
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53480
data_source: redis
distribution:
- ce
- ee
tier:
- free
- premium
- ultimate
skip_validation: true
......@@ -3548,6 +3548,42 @@ Status: `data_available`
Tiers: `free`
### `counts.package_events_i_package_rubygems_delete_package`
Total count of RubyGems packages delete events
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210303153000_package_events_i_package_rubygems_delete_package.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `counts.package_events_i_package_rubygems_pull_package`
Total count of pull RubyGems packages events
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210303153002_package_events_i_package_rubygems_pull_package.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `counts.package_events_i_package_rubygems_push_package`
Total count of push RubyGems packages events
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_all/20210303153004_package_events_i_package_rubygems_push_package.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `counts.package_events_i_package_tag_delete_package`
Missing description
......@@ -9392,6 +9428,30 @@ Status: `data_available`
Tiers:
### `redis_hll_counters.deploy_token_packages.i_package_rubygems_deploy_token_monthly`
Distinct user count events for RubyGems packages in recent 28 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_28d/20210303154626_i_package_rubygems_deploy_token_monthly.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.deploy_token_packages.i_package_rubygems_deploy_token_weekly`
Distinct RubyGems pakages deployed in recent 7 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_7d/20210303154624_i_package_rubygems_deploy_token_weekly.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.deploy_token_packages.i_package_tag_deploy_token_monthly`
Missing description
......@@ -11626,7 +11686,7 @@ Tiers:
### `redis_hll_counters.quickactions.i_quickactions_invite_email_multiple_monthly`
Missing description
Unique users using the /invite_email quick action to add a multiple email participants to an issue within 28 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_28d/20210222041235_i_quickactions_invite_email_multiple_monthly.yml)
......@@ -11634,11 +11694,23 @@ Group: `group::product planning`
Status: `implemented`
Tiers: `free`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.quickactions.i_quickactions_invite_email_multiple_weekly`
Unique users using the /invite_email quick action to add a multiple email participants to an issue within 7 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_7d/20210303154600_i_quickactions_invite_email_multiple_weekly.yml)
Group: `group::product planning`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.quickactions.i_quickactions_invite_email_single_monthly`
Missing description
Unique users using the /invite_email quick action to add a single email participant to an issue within 28 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_28d/20210222041219_i_quickactions_invite_email_single_monthly.yml)
......@@ -11646,7 +11718,19 @@ Group: `group::product planning`
Status: `implemented`
Tiers: `free`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.quickactions.i_quickactions_invite_email_single_weekly`
Unique users using the /invite_email quick action to add a single email participant to an issue within 7 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_7d/20210303154557_i_quickactions_invite_email_single_weekly.yml)
Group: `group::product planning`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.quickactions.i_quickactions_iteration_monthly`
......@@ -13472,6 +13556,30 @@ Status: `data_available`
Tiers:
### `redis_hll_counters.user_packages.i_package_rubygems_user_monthly`
Distinct user count events for RubyGems packages in recent 28 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_28d/20210303154654_i_package_rubygems_user_monthly.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.user_packages.i_package_rubygems_user_weekly`
Distinct user count events for RubyGems packages in recent 7 days
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/config/metrics/counts_7d/20210303154652_i_package_rubygems_user_weekly.yml)
Group: `group::package`
Status: `data_available`
Tiers: `free`, `premium`, `ultimate`
### `redis_hll_counters.user_packages.i_package_tag_user_monthly`
Missing description
......
......@@ -29,7 +29,7 @@ module Gitlab
def validate!
unless skip_validation?
self.class.schemer.validate(attributes.stringify_keys).each do |error|
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Metric::InvalidMetricError.new("#{error["details"] || error['data_pointer']} for `#{path}`"))
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Gitlab::Usage::Metric::InvalidMetricError.new("#{error["details"] || error['data_pointer']} for `#{path}`"))
end
end
end
......@@ -64,7 +64,7 @@ module Gitlab
self.new(path, definition).tap(&:validate!)
rescue => e
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Metric::InvalidMetricError.new(e.message))
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Gitlab::Usage::Metric::InvalidMetricError.new(e.message))
end
def load_all_from_path!(definitions, glob_path)
......@@ -72,7 +72,7 @@ module Gitlab
definition = load_from_file(path)
if previous = definitions[definition.key]
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Metric::InvalidMetricError.new("Metric '#{definition.key}' is already defined in '#{previous.path}'"))
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(Gitlab::Usage::Metric::InvalidMetricError.new("Metric '#{definition.key}' is already defined in '#{previous.path}'"))
end
definitions[definition.key] = definition
......
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