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
4c7b3673
Commit
4c7b3673
authored
Sep 18, 2020
by
Alper Akgun
Committed by
Russell Dickenson
Sep 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc for exporting usage ping definitions
parent
c7a93522
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
doc/development/telemetry/usage_ping.md
doc/development/telemetry/usage_ping.md
+21
-0
No files found.
doc/development/telemetry/usage_ping.md
View file @
4c7b3673
...
...
@@ -850,3 +850,24 @@ The following is example content of the Usage Ping payload.
}
}
```
## Exporting Usage Ping SQL queries and definitions
Two Rake tasks exist to export Usage Ping definitions.
-
The Rake tasks export the raw SQL queries for
`count`
,
`distinct_count`
,
`sum`
.
-
The Rake tasks export the Redis counter class or the line of the Redis block for
`redis_usage_data`
.
-
The Rake tasks calculate the
`alt_usage_data`
metrics.
In the home directory of your local GitLab installation run the following Rake tasks for the YAML and JSON versions respectively:
```
shell
# for YAML export
bin/rake gitlab:usage_data:dump_sql_in_yaml
# for JSON export
bin/rake gitlab:usage_data:dump_sql_in_json
# You may pipe the output into a file
bin/rake gitlab:usage_data:dump_sql_in_yaml
>
~/Desktop/usage-metrics-2020-09-02.yaml
```
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