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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
c180221a
Commit
c180221a
authored
Oct 14, 2016
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for request profiling
Closes #23239
parent
c2ca8a75
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
1 deletion
+20
-1
CHANGELOG
CHANGELOG
+1
-0
doc/README.md
doc/README.md
+1
-0
doc/administration/monitoring/performance/img/request_profile_result.png
...ion/monitoring/performance/img/request_profile_result.png
+0
-0
doc/administration/monitoring/performance/img/request_profiling_token.png
...on/monitoring/performance/img/request_profiling_token.png
+0
-0
doc/administration/monitoring/performance/request_profiling.md
...dministration/monitoring/performance/request_profiling.md
+16
-0
doc/development/performance.md
doc/development/performance.md
+2
-1
No files found.
CHANGELOG
View file @
c180221a
...
...
@@ -115,6 +115,7 @@ v 8.13.0 (unreleased)
- Fixes padding in all clipboard icons that have .btn class
- Fix a typo in doc/api/labels.md
- API: all unknown routing will be handled with 404 Not Found
- Add docs for request profiling
- Make guests unable to view MRs on private projects
v 8.12.7
...
...
doc/README.md
View file @
c180221a
...
...
@@ -49,6 +49,7 @@
-
[
Git LFS configuration
](
workflow/lfs/lfs_administration.md
)
-
[
Housekeeping
](
administration/housekeeping.md
)
Keep your Git repository tidy and fast.
-
[
GitLab Performance Monitoring
](
administration/monitoring/performance/introduction.md
)
Configure GitLab and InfluxDB for measuring performance metrics.
-
[
Request Profiling
](
administration/monitoring/performance/request_profiling.md
)
Get a detailed profile on slow requests.
-
[
Monitoring uptime
](
user/admin_area/monitoring/health_check.md
)
Check the server status using the health check endpoint.
-
[
Debugging Tips
](
administration/troubleshooting/debug.md
)
Tips to debug problems when things go wrong
-
[
Sidekiq Troubleshooting
](
administration/troubleshooting/sidekiq.md
)
Debug when Sidekiq appears hung and is not processing jobs.
...
...
doc/administration/monitoring/performance/img/request_profile_result.png
0 → 100644
View file @
c180221a
9.49 KB
doc/administration/monitoring/performance/img/request_profiling_token.png
0 → 100644
View file @
c180221a
29.4 KB
doc/administration/monitoring/performance/request_profiling.md
0 → 100644
View file @
c180221a
# Request Profiling
## Procedure
1.
Grab the profiling token from
`Monitoring > Requests Profiles`
admin page
(highlighted in a blue in the image below).
![
Profile token
](
img/request_profiling_token.png
)
1.
Pass the header
`X-Profile-Token: <token>`
to the request you want to profile. You can use any of these tools
*
[
ModHeader
](
https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj
)
Chrome extension
*
[
Modify Headers
](
https://addons.mozilla.org/en-US/firefox/addon/modify-headers/
)
Firefox extension
*
`curl --header 'X-Profile-Token: <token>' https://gitlab.example.com/group/project`
1.
Once request is finished (which will take a little longer than usual), you can
view the profiling output from
`Monitoring > Requests Profiles`
admin page.
![
Profiling output
](
img/request_profile_result.png
)
## Cleaning up
Profiling output will be cleared out every day via a Sidekiq worker.
doc/development/performance.md
View file @
c180221a
...
...
@@ -34,10 +34,11 @@ graphs/dashboards.
## Tooling
GitLab provides
two
built-in tools to aid the process of improving performance:
GitLab provides built-in tools to aid the process of improving performance:
*
[
Sherlock
](
profiling.md#sherlock
)
*
[
GitLab Performance Monitoring
](
../monitoring/performance/monitoring.md
)
*
[
Request Profiling
](
../administration/monitoring/performance/request_profiling.md
)
GitLab employees can use GitLab.com's performance monitoring systems located at
<http://performance.gitlab.net>
, this requires you to log in using your
...
...
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