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
f1e45425
Commit
f1e45425
authored
May 15, 2021
by
Piotr Skorupa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove namespaces in metric definitions instrumentation_class
parent
7368e2a6
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
10 deletions
+10
-10
config/metrics/counts_28d/20210216181139_issues.yml
config/metrics/counts_28d/20210216181139_issues.yml
+1
-1
config/metrics/counts_28d/20210216181508_i_quickactions_approve_monthly.yml
...nts_28d/20210216181508_i_quickactions_approve_monthly.yml
+1
-1
config/metrics/counts_7d/20210216181506_i_quickactions_approve_weekly.yml
...ounts_7d/20210216181506_i_quickactions_approve_weekly.yml
+1
-1
config/metrics/counts_all/20210216181102_issues.yml
config/metrics/counts_all/20210216181102_issues.yml
+1
-1
config/metrics/counts_all/20210216181115_issues.yml
config/metrics/counts_all/20210216181115_issues.yml
+1
-1
config/metrics/counts_all/20210216181252_boards.yml
config/metrics/counts_all/20210216181252_boards.yml
+1
-1
config/metrics/license/20210201124933_uuid.yml
config/metrics/license/20210201124933_uuid.yml
+1
-1
config/metrics/license/20210204124827_hostname.yml
config/metrics/license/20210204124827_hostname.yml
+1
-1
config/metrics/schema.json
config/metrics/schema.json
+1
-1
lib/gitlab/usage_data_metrics.rb
lib/gitlab/usage_data_metrics.rb
+1
-1
No files found.
config/metrics/counts_28d/20210216181139_issues.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
database
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountUsersCreatingIssuesMetric'
instrumentation_class
:
CountUsersCreatingIssuesMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_28d/20210216181508_i_quickactions_approve_monthly.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountUsersUsingApproveQuickActionMetric'
instrumentation_class
:
CountUsersUsingApproveQuickActionMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216181506_i_quickactions_approve_weekly.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountUsersUsingApproveQuickActionMetric'
instrumentation_class
:
CountUsersUsingApproveQuickActionMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_all/20210216181102_issues.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
all
data_source
:
database
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountIssuesMetric'
instrumentation_class
:
CountIssuesMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_all/20210216181115_issues.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
all
data_source
:
database
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountUsersCreatingIssuesMetric'
instrumentation_class
:
CountUsersCreatingIssuesMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_all/20210216181252_boards.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: number
status
:
data_available
time_frame
:
all
data_source
:
database
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::CountBoardsMetric'
instrumentation_class
:
CountBoardsMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/license/20210201124933_uuid.yml
View file @
f1e45425
...
...
@@ -11,7 +11,7 @@ milestone: "9.1"
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1521
time_frame
:
none
data_source
:
database
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::UuidMetric'
instrumentation_class
:
UuidMetric
distribution
:
-
ee
-
ce
...
...
config/metrics/license/20210204124827_hostname.yml
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ value_type: string
status
:
data_available
time_frame
:
none
data_source
:
system
instrumentation_class
:
'
Gitlab::Usage::Metrics::Instrumentations::HostnameMetric'
instrumentation_class
:
HostnameMetric
distribution
:
-
ce
-
ee
...
...
config/metrics/schema.json
View file @
f1e45425
...
...
@@ -56,7 +56,7 @@
},
"instrumentation_class"
:
{
"type"
:
"string"
,
"pattern"
:
"^(
Gitlab::Usage::Metrics::Instrumentations::)(
([A-Z][a-z]+)+::)*(([A-Z][a-z]+)+)$"
"pattern"
:
"^(([A-Z][a-z]+)+::)*(([A-Z][a-z]+)+)$"
},
"distribution"
:
{
"type"
:
"array"
,
...
...
lib/gitlab/usage_data_metrics.rb
View file @
f1e45425
...
...
@@ -9,7 +9,7 @@ module Gitlab
instrumentation_class
=
definition
.
attributes
[
:instrumentation_class
]
if
instrumentation_class
.
present?
metric_value
=
instrumentation_class
.
constantize
.
new
(
time_frame:
definition
.
attributes
[
:time_frame
]).
value
metric_value
=
"Gitlab::Usage::Metrics::Instrumentations::
#{
instrumentation_class
}
"
.
constantize
.
new
(
time_frame:
definition
.
attributes
[
:time_frame
]).
value
metric_payload
(
definition
.
key_path
,
metric_value
)
else
...
...
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