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
8ab8f2f7
Commit
8ab8f2f7
authored
Apr 29, 2021
by
Alina Mihaila
Committed by
Evan Read
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Usage Ping docs Redis HLL event names
parent
f637b48d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
23 deletions
+18
-23
doc/development/usage_ping/index.md
doc/development/usage_ping/index.md
+18
-23
No files found.
doc/development/usage_ping/index.md
View file @
8ab8f2f7
...
...
@@ -665,7 +665,7 @@ Use one of the following methods to track events:
include
RedisTracking
skip_before_action
:authenticate_user!
,
only: :show
track_redis_hll_event
:index
,
:show
,
name:
'
g_compliance_example_feature_visitor
s'
track_redis_hll_event
:index
,
:show
,
name:
'
users_visiting_project
s'
def
index
render
html:
'index'
...
...
@@ -826,29 +826,24 @@ Example of `redis_hll_counters` data:
```
ruby
{
:redis_hll_counters
=>
{
"compliance"
=>
{
"g_compliance_dashboard_weekly"
=>
0
,
"g_compliance_dashboard_monthly"
=>
0
,
"g_compliance_audit_events_weekly"
=>
0
,
"
g_compliance
_audit_events_monthly"
=>
0
,
{
"
users_viewin
g_compliance_dashboard_weekly"
=>
0
,
"
users_viewin
g_compliance_dashboard_monthly"
=>
0
,
"
users_viewin
g_compliance_audit_events_weekly"
=>
0
,
"
users_viewing
_audit_events_monthly"
=>
0
,
"compliance_total_unique_counts_weekly"
=>
0
,
"compliance_total_unique_counts_monthly"
=>
0
},
"analytics"
=>
{
"g_analytics_contribution_weekly"
=>
0
,
"g_analytics_contribution_monthly"
=>
0
,
"g_analytics_insights_weekly"
=>
0
,
"g_analytics_insights_monthly"
=>
0
,
"analytics"
=>
{
"users_viewing_analytics_group_devops_adoption_weekly"
=>
0
,
"users_viewing_analytics_group_devops_adoption_monthly"
=>
0
,
"analytics_total_unique_counts_weekly"
=>
0
,
"analytics_total_unique_counts_monthly"
=>
0
},
"ide_edit"
=>
{
"
g_edit
_by_web_ide_weekly"
=>
0
,
"
g_edit
_by_web_ide_monthly"
=>
0
,
"
g_edit
_by_sfe_weekly"
=>
0
,
"
g_edit
_by_sfe_monthly"
=>
0
,
{
"
users_editing
_by_web_ide_weekly"
=>
0
,
"
users_editing
_by_web_ide_monthly"
=>
0
,
"
users_editing
_by_sfe_weekly"
=>
0
,
"
users_editing
_by_sfe_monthly"
=>
0
,
"ide_edit_total_unique_counts_weekly"
=>
0
,
"ide_edit_total_unique_counts_monthly"
=>
0
},
"search"
=>
{
"i_search_total_weekly"
=>
0
,
"i_search_total_monthly"
=>
0
,
"i_search_advanced_weekly"
=>
0
,
"i_search_advanced_monthly"
=>
0
,
"i_search_paid_weekly"
=>
0
,
"i_search_paid_monthly"
=>
0
,
"search_total_unique_counts_weekly"
=>
0
,
"search_total_unique_counts_monthly"
=>
0
},
"source_code"
=>
{
"wiki_action_weekly"
=>
0
,
"wiki_action_monthly"
=>
0
}
"ide_edit_total_unique_counts_monthly"
=>
0
}
}
```
...
...
@@ -862,10 +857,10 @@ redis_usage_data { ::Gitlab::UsageCounters::PodLogs.usage_totals[:total] }
# Define events in common.yml https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/usage_data_counters/known_events/common.yml
# Tracking events
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
'
expand
_vulnerabilities'
,
values:
visitor_id
)
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
track_event
(
'
users_expanding
_vulnerabilities'
,
values:
visitor_id
)
# Get unique events for metric
redis_usage_data
{
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
unique_events
(
event_names:
'
expand
_vulnerabilities'
,
start_date:
28
.
days
.
ago
,
end_date:
Date
.
current
)
}
redis_usage_data
{
Gitlab
::
UsageDataCounters
::
HLLRedisCounter
.
unique_events
(
event_names:
'
users_expanding
_vulnerabilities'
,
start_date:
28
.
days
.
ago
,
end_date:
Date
.
current
)
}
```
### Alternative Counters
...
...
@@ -1144,9 +1139,9 @@ Example aggregated metric entries:
-
name
:
example_metrics_union
operator
:
OR
events
:
-
'
i_search_total
'
-
'
i_search_advanced
'
-
'
i_search_paid
'
-
'
users_expanding_secure_security_report
'
-
'
users_expanding_testing_code_quality_report
'
-
'
users_expanding_testing_accessibility_report
'
source
:
redis
time_frame
:
-
7d
...
...
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