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
09b0864a
Commit
09b0864a
authored
Jul 23, 2021
by
Luis Mejia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add web_edit instrumentation class
parent
64ada62a
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
57 additions
and
1 deletion
+57
-1
config/metrics/counts_28d/20210216180330_g_edit_by_web_ide_monthly.yml
...s/counts_28d/20210216180330_g_edit_by_web_ide_monthly.yml
+4
-0
config/metrics/counts_28d/20210216180334_g_edit_by_sfe_monthly.yml
...trics/counts_28d/20210216180334_g_edit_by_sfe_monthly.yml
+4
-0
config/metrics/counts_28d/20210216180338_g_edit_by_snippet_ide_monthly.yml
...unts_28d/20210216180338_g_edit_by_snippet_ide_monthly.yml
+4
-0
config/metrics/counts_28d/20210216180341_ide_edit_total_unique_counts_monthly.yml
...d/20210216180341_ide_edit_total_unique_counts_monthly.yml
+7
-0
config/metrics/counts_28d/20210216184024_g_edit_by_sse_monthly.yml
...trics/counts_28d/20210216184024_g_edit_by_sse_monthly.yml
+4
-0
config/metrics/counts_7d/20210216180328_g_edit_by_web_ide_weekly.yml
...ics/counts_7d/20210216180328_g_edit_by_web_ide_weekly.yml
+4
-0
config/metrics/counts_7d/20210216180332_g_edit_by_sfe_weekly.yml
...metrics/counts_7d/20210216180332_g_edit_by_sfe_weekly.yml
+4
-0
config/metrics/counts_7d/20210216180336_g_edit_by_snippet_ide_weekly.yml
...counts_7d/20210216180336_g_edit_by_snippet_ide_weekly.yml
+4
-0
config/metrics/counts_7d/20210216180339_ide_edit_total_unique_counts_weekly.yml
...7d/20210216180339_ide_edit_total_unique_counts_weekly.yml
+7
-0
config/metrics/counts_7d/20210216184022_g_edit_by_sse_weekly.yml
...metrics/counts_7d/20210216184022_g_edit_by_sse_weekly.yml
+4
-0
spec/lib/gitlab/usage_data_metrics_spec.rb
spec/lib/gitlab/usage_data_metrics_spec.rb
+11
-1
No files found.
config/metrics/counts_28d/20210216180330_g_edit_by_web_ide_monthly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_web_ide
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_28d/20210216180334_g_edit_by_sfe_monthly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_sfe
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_28d/20210216180338_g_edit_by_snippet_ide_monthly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_snippet_ide
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_28d/20210216180341_ide_edit_total_unique_counts_monthly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,13 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_web_ide
-
g_edit_by_sfe
-
g_edit_by_snippet_ide
-
g_edit_by_sse
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_28d/20210216184024_g_edit_by_sse_monthly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
28d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_sse
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216180328_g_edit_by_web_ide_weekly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_web_ide
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216180332_g_edit_by_sfe_weekly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_sfe
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216180336_g_edit_by_snippet_ide_weekly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_snippet_ide
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216180339_ide_edit_total_unique_counts_weekly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,13 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_web_ide
-
g_edit_by_sfe
-
g_edit_by_snippet_ide
-
g_edit_by_sse
distribution
:
-
ce
-
ee
...
...
config/metrics/counts_7d/20210216184022_g_edit_by_sse_weekly.yml
View file @
09b0864a
...
...
@@ -10,6 +10,10 @@ value_type: number
status
:
data_available
time_frame
:
7d
data_source
:
redis_hll
instrumentation_class
:
RedisHLLMetric
options
:
events
:
-
g_edit_by_sse
distribution
:
-
ce
-
ee
...
...
spec/lib/gitlab/usage_data_metrics_spec.rb
View file @
09b0864a
...
...
@@ -16,7 +16,7 @@ RSpec.describe Gitlab::UsageDataMetrics do
allow
(
ActiveRecord
::
Base
.
connection
).
to
receive
(
:transaction_open?
).
and_return
(
false
)
end
context
'w
h
ith instrumentation_class'
do
context
'with instrumentation_class'
do
it
'includes top level keys'
do
expect
(
subject
).
to
include
(
:uuid
)
expect
(
subject
).
to
include
(
:hostname
)
...
...
@@ -31,6 +31,16 @@ RSpec.describe Gitlab::UsageDataMetrics do
expect
(
subject
[
:redis_hll_counters
][
:quickactions
]).
to
include
(
:i_quickactions_approve_weekly
)
end
it
'includes ide_edit monthly and weekly keys'
do
expect
(
subject
[
:redis_hll_counters
][
:ide_edit
].
keys
).
to
contain_exactly
(
*
[
:g_edit_by_web_ide_monthly
,
:g_edit_by_web_ide_weekly
,
:g_edit_by_sfe_monthly
,
:g_edit_by_sfe_weekly
,
:g_edit_by_sse_monthly
,
:g_edit_by_sse_weekly
,
:g_edit_by_snippet_ide_monthly
,
:g_edit_by_snippet_ide_weekly
,
:ide_edit_total_unique_counts_monthly
,
:ide_edit_total_unique_counts_weekly
])
end
it
'includes counts keys'
do
expect
(
subject
[
:counts
]).
to
include
(
:issues
)
end
...
...
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