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
271b17dc
Commit
271b17dc
authored
Apr 20, 2021
by
Pavel Shutsin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group DevOps adoption usage metric
Will be used to measure adoption of the feature Changelog: added
parent
d1c676e2
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
170 additions
and
88 deletions
+170
-88
doc/development/usage_ping/dictionary.md
doc/development/usage_ping/dictionary.md
+24
-0
ee/app/controllers/groups/analytics/devops_adoption_controller.rb
...ontrollers/groups/analytics/devops_adoption_controller.rb
+4
-0
ee/changelogs/unreleased/327656-add-group-devops-adoption-usage-ping.yml
...nreleased/327656-add-group-devops-adoption-usage-ping.yml
+5
-0
ee/config/metrics/counts_28d/20210401092244_i_analytics_dev_ops_adoption_monthly.yml
...d/20210401092244_i_analytics_dev_ops_adoption_monthly.yml
+1
-1
ee/config/metrics/counts_28d/20210419105414_users_viewing_analytics_group_devops_adoption_monthly.yml
...users_viewing_analytics_group_devops_adoption_monthly.yml
+18
-0
ee/config/metrics/counts_7d/20210401092244_i_analytics_dev_ops_adoption_weekly.yml
...7d/20210401092244_i_analytics_dev_ops_adoption_weekly.yml
+1
-0
ee/config/metrics/counts_7d/20210419105408_users_viewing_analytics_group_devops_adoption_weekly.yml
..._users_viewing_analytics_group_devops_adoption_weekly.yml
+18
-0
ee/spec/requests/groups/analytics/devops_adoption_controller_spec.rb
...uests/groups/analytics/devops_adoption_controller_spec.rb
+7
-0
lib/gitlab/usage_data_counters/known_events/analytics.yml
lib/gitlab/usage_data_counters/known_events/analytics.yml
+90
-0
lib/gitlab/usage_data_counters/known_events/common.yml
lib/gitlab/usage_data_counters/known_events/common.yml
+0
-86
spec/lib/gitlab/usage_data_spec.rb
spec/lib/gitlab/usage_data_spec.rb
+2
-1
No files found.
doc/development/usage_ping/dictionary.md
View file @
271b17dc
...
...
@@ -7592,6 +7592,30 @@ Status: `data_available`
Tiers:
### `redis_hll_counters.analytics.users_viewing_analytics_group_devops_adoption_monthly`
Counts visits to DevOps Adoption page per month
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_28d/20210419105414_users_viewing_analytics_group_devops_adoption_monthly.yml)
Group: `group::optimize`
Status: `implemented`
Tiers: `premium`, `ultimate`
### `redis_hll_counters.analytics.users_viewing_analytics_group_devops_adoption_weekly`
Counts visits to DevOps Adoption page per week
[YAML definition](https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/config/metrics/counts_7d/20210419105408_users_viewing_analytics_group_devops_adoption_weekly.yml)
Group: `group::optimize`
Status: `implemented`
Tiers: `premium`, `ultimate`
### `redis_hll_counters.ci_secrets_management.i_ci_secrets_management_vault_build_created_monthly`
Missing description
...
...
ee/app/controllers/groups/analytics/devops_adoption_controller.rb
View file @
271b17dc
# frozen_string_literal: true
class
Groups::Analytics::DevopsAdoptionController
<
Groups
::
Analytics
::
ApplicationController
include
RedisTracking
layout
'group'
before_action
:load_group
before_action
->
{
authorize_view_by_action!
(
:view_group_devops_adoption
)
}
track_redis_hll_event
:show
,
name:
'users_viewing_analytics_group_devops_adoption'
def
show
end
end
ee/changelogs/unreleased/327656-add-group-devops-adoption-usage-ping.yml
0 → 100644
View file @
271b17dc
---
title
:
Add group level DevOps adoption usage ping
merge_request
:
59738
author
:
type
:
added
ee/config/metrics/counts_28d/20210401092244_i_analytics_dev_ops_adoption_monthly.yml
View file @
271b17dc
---
# See Usage Ping metrics dictionary docs https://docs.gitlab.com/ee/development/usage_ping/metrics_dictionary.html
key_path
:
redis_hll_counters.analytics.i_analytics_dev_ops_adoption_monthly
name
:
users_viewing_analytics_instance_devops_adoption_monthly
description
:
Counts visits to DevOps Adoption page per month
product_section
:
dev
product_stage
:
manage
...
...
ee/config/metrics/counts_28d/20210419105414_users_viewing_analytics_group_devops_adoption_monthly.yml
0 → 100644
View file @
271b17dc
---
key_path
:
redis_hll_counters.analytics.users_viewing_analytics_group_devops_adoption_monthly
description
:
Counts visits to DevOps Adoption page per month
product_section
:
dev
product_stage
:
manage
product_group
:
group::optimize
product_category
:
devops_reports
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
"
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59738"
time_frame
:
28d
data_source
:
redis_hll
distribution
:
-
ee
tier
:
-
premium
-
ultimate
ee/config/metrics/counts_7d/20210401092244_i_analytics_dev_ops_adoption_weekly.yml
View file @
271b17dc
---
# See Usage Ping metrics dictionary docs https://docs.gitlab.com/ee/development/usage_ping/metrics_dictionary.html
key_path
:
redis_hll_counters.analytics.i_analytics_dev_ops_adoption_weekly
name
:
users_viewing_analytics_instance_devops_adoption_weekly
description
:
Counts visits to DevOps Adoption page per week
product_section
:
dev
product_stage
:
manage
...
...
ee/config/metrics/counts_7d/20210419105408_users_viewing_analytics_group_devops_adoption_weekly.yml
0 → 100644
View file @
271b17dc
---
key_path
:
redis_hll_counters.analytics.users_viewing_analytics_group_devops_adoption_weekly
description
:
Counts visits to DevOps Adoption page per week
product_section
:
dev
product_stage
:
manage
product_group
:
group::optimize
product_category
:
devops_reports
value_type
:
number
status
:
implemented
milestone
:
"
13.12"
introduced_by_url
:
"
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59738"
time_frame
:
7d
data_source
:
redis_hll
distribution
:
-
ee
tier
:
-
premium
-
ultimate
ee/spec/requests/groups/analytics/devops_adoption_controller_spec.rb
View file @
271b17dc
...
...
@@ -51,5 +51,12 @@ RSpec.describe Groups::Analytics::DevopsAdoptionController do
expect
(
response
).
to
have_gitlab_http_status
(
:forbidden
)
end
end
it
'tracks devops_adoption usage event'
do
expect
(
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
)
.
to
receive
(
:track_event
).
with
(
'users_viewing_analytics_group_devops_adoption'
,
values:
kind_of
(
String
))
subject
end
end
end
lib/gitlab/usage_data_counters/known_events/analytics.yml
0 → 100644
View file @
271b17dc
-
name
:
users_viewing_analytics_group_devops_adoption
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_dev_ops_adoption
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_merge_request
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_dev_ops_score
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_merge_request
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_instance_statistics
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_contribution
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_insights
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_issues
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_productivity
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_valuestream
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_pipelines
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_code_reviews
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_valuestream
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_insights
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_issues
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_repo
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_cohorts
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
lib/gitlab/usage_data_counters/known_events/common.yml
View file @
271b17dc
...
...
@@ -25,92 +25,6 @@
redis_slot
:
compliance
aggregation
:
weekly
feature_flag
:
usage_data_a_compliance_audit_events_api
# Analytics category
-
name
:
g_analytics_contribution
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_insights
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_issues
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_productivity
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_valuestream
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_pipelines
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_code_reviews
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_valuestream
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_insights
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_issues
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_repo
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_cohorts
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_dev_ops_score
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_dev_ops_adoption
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_analytics_merge_request
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
p_analytics_merge_request
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
i_analytics_instance_statistics
category
:
analytics
redis_slot
:
analytics
aggregation
:
weekly
feature_flag
:
track_unique_visits
-
name
:
g_edit_by_web_ide
category
:
ide_edit
redis_slot
:
edit
...
...
spec/lib/gitlab/usage_data_spec.rb
View file @
271b17dc
...
...
@@ -1303,10 +1303,11 @@ RSpec.describe Gitlab::UsageData, :aggregate_failures do
'p_analytics_repo'
=>
123
,
'i_analytics_cohorts'
=>
123
,
'i_analytics_dev_ops_score'
=>
123
,
'i_analytics_dev_ops_adoption'
=>
123
,
'i_analytics_instance_statistics'
=>
123
,
'p_analytics_merge_request'
=>
123
,
'g_analytics_merge_request'
=>
123
,
'i_analytics_dev_ops_adoption'
=>
123
,
'users_viewing_analytics_group_devops_adoption'
=>
123
,
'analytics_unique_visits_for_any_target'
=>
543
,
'analytics_unique_visits_for_any_target_monthly'
=>
987
}
...
...
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