Commit 42620468 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch '270107-add-metrics-ee-metric-definition-example' into 'master'

Add ee metrics yml file for usage data metrics definition

See merge request gitlab-org/gitlab!50990
parents 1caddcf9 fac6ee75
name: geo_nodes
description: Total number of sites in a Geo deployment
value_type: integer
product_category: disaster_recovery
stage: enablement
status: data_available
default_generation: generation_1
full_path:
generation_1: counts.geo_nodes
milestone: 11.2
group: 'group::geo'
time_frame: all
data_source: database
distribution: [ee]
tier: ['premium', 'ultimate']
# frozen_string_literal: true
module EE
module Gitlab
module Usage
module MetricDefinition
extend ActiveSupport::Concern
class_methods do
extend ::Gitlab::Utils::Override
override :paths
def paths
@ee_paths ||= [Rails.root.join('ee', 'config', 'metrics', '**', '*.yml')] + super
end
end
end
end
end
end
...@@ -82,3 +82,5 @@ module Gitlab ...@@ -82,3 +82,5 @@ module Gitlab
end end
end end
end end
Gitlab::Usage::MetricDefinition.prepend_if_ee('EE::Gitlab::Usage::MetricDefinition')
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