summaryrefslogtreecommitdiff
path: root/doc/administration/monitoring/performance/request_profiling.md
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2016-10-16 18:16:50 +0000
committerAchilleas Pipinellis <axilleas@axilleas.me>2016-10-16 18:16:50 +0000
commita4fa44ce90565c93b65b730d9d400e4b4b49ee4d (patch)
tree1e4037ac6fbb543a207826a61383590b095e1449 /doc/administration/monitoring/performance/request_profiling.md
parent5174b7ad7e4b90761467388a29fa016d77e7a16d (diff)
parent195c10574e110a0ced395fbee5cd5e546fb9e7fc (diff)
downloadgitlab-ce-a4fa44ce90565c93b65b730d9d400e4b4b49ee4d.tar.gz
Merge branch 'master' into 'docs/change-docs-reviewers'
# Conflicts: # doc/development/doc_styleguide.md
Diffstat (limited to 'doc/administration/monitoring/performance/request_profiling.md')
-rw-r--r--doc/administration/monitoring/performance/request_profiling.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/administration/monitoring/performance/request_profiling.md b/doc/administration/monitoring/performance/request_profiling.md
new file mode 100644
index 00000000000..c358dfbead2
--- /dev/null
+++ b/doc/administration/monitoring/performance/request_profiling.md
@@ -0,0 +1,16 @@
+# 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.