Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fac6ee75
Commit
fac6ee75
authored
Jan 06, 2021
by
alinamihaila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ee metric definitions
parent
ff86a2e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
ee/config/metrics/counts_all/geo_nodes.yml
ee/config/metrics/counts_all/geo_nodes.yml
+15
-0
ee/lib/ee/gitlab/usage/metric_definition.rb
ee/lib/ee/gitlab/usage/metric_definition.rb
+19
-0
lib/gitlab/usage/metric_definition.rb
lib/gitlab/usage/metric_definition.rb
+2
-0
No files found.
ee/config/metrics/counts_all/geo_nodes.yml
0 → 100644
View file @
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'
]
ee/lib/ee/gitlab/usage/metric_definition.rb
0 → 100644
View file @
fac6ee75
# 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
lib/gitlab/usage/metric_definition.rb
View file @
fac6ee75
...
...
@@ -82,3 +82,5 @@ module Gitlab
end
end
end
Gitlab
::
Usage
::
MetricDefinition
.
prepend_if_ee
(
'EE::Gitlab::Usage::MetricDefinition'
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment