diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-10-14 20:49:36 +0300 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-10-14 21:18:23 +0300 |
commit | c180221a5b0e58c42632412d2084efc3bd4cda99 (patch) | |
tree | d4cbac400c6cc306c305d67c4df689706635e932 /doc/administration/monitoring/performance | |
parent | c2ca8a75064587ae17600fecb53e8c572505f1c4 (diff) |
Add docs for request profiling
Closes #23239
Diffstat (limited to 'doc/administration/monitoring/performance')
-rw-r--r-- | doc/administration/monitoring/performance/img/request_profile_result.png | bin | 0 -> 9720 bytes | |||
-rw-r--r-- | doc/administration/monitoring/performance/img/request_profiling_token.png | bin | 0 -> 30076 bytes | |||
-rw-r--r-- | doc/administration/monitoring/performance/request_profiling.md | 16 |
3 files changed, 16 insertions, 0 deletions
diff --git a/doc/administration/monitoring/performance/img/request_profile_result.png b/doc/administration/monitoring/performance/img/request_profile_result.png Binary files differnew file mode 100644 index 00000000000..73e2fdcab67 --- /dev/null +++ b/doc/administration/monitoring/performance/img/request_profile_result.png diff --git a/doc/administration/monitoring/performance/img/request_profiling_token.png b/doc/administration/monitoring/performance/img/request_profiling_token.png Binary files differnew file mode 100644 index 00000000000..04d87567816 --- /dev/null +++ b/doc/administration/monitoring/performance/img/request_profiling_token.png 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. |