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
a84c28f5
Commit
a84c28f5
authored
Mar 26, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add API docs for UsagDataQueries API
parent
8c37c23f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/development/usage_ping/index.md
doc/development/usage_ping/index.md
+19
-0
No files found.
doc/development/usage_ping/index.md
View file @
a84c28f5
...
...
@@ -805,6 +805,25 @@ We return fallback values in these cases:
| Timeouts, general failures | -1 |
| Standard errors in counters | -2 |
### UsagePing Admin APIs
#### UsageDataQueries API
> - Introduced in [GitLab 13.11](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57016)
> - It's [deployed behind a feature flag](../user/feature_flags.md), disabled by default.
1.
Get UsagePing raw SQL queries via an API.
Only available to GitLab instance Admin users.
Get all the raw sql queries used to compute usage ping.
```
plaintext
GET /usage_data/queries
```
Sample response can be checked via
[
the snippet
](
https://gitlab.com/-/snippets/2094332
)
.
## Developing and testing Usage Ping
### 1. Naming and placing the metrics
...
...
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