summaryrefslogtreecommitdiff
path: root/config/initializers/peek.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2023-03-211-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2022-07-011-1/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-09-021-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-261-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-02-031-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-01-221-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-181-0/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-281-0/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-221-0/+1
|
* Add top-level warnings key to performance bar responseperformance-bar-warningsSean McGivern2019-08-281-0/+1
| | | | | | This key is useful to reduce the amount of logic needed on the frontend: if `has_warnings` is true, then the frontend knows that the request in question has warnings for some metric.
* Remove GC metrics from performance barSean McGivern2019-08-061-5/+0
| | | | | | These were disabled in production mode, but that also broke the rest of the performance bar. As they were only enabled in development mode, we can just remove them for now.
* Call `GC::Profiler.clear` only in one placeAleksei Lipniagov2019-08-021-1/+6
| | | | | | | | | | | | | | | Previously, both InfluxSampler and RubySampler were relying on the `GC::Profiler.total_time` data which is the sum over the list of captured GC events. Also, both samplers asynchronously called `GC::Profiler.clear` which led to incorrect metric data because each sampler has the wrong assumption it is the only object who calls `GC::Profiler.clear` and thus could rely on the gathered results between such calls. We should ensure that `GC::Profiler.total_time` is called only in one place making it possible to rely on accumulated data between such wipes. Also, we need to track the amount of profiler reports we lost.
* Remove line profiler from performance barSean McGivern2019-07-301-1/+0
| | | | | | | | | 1. The output isn't great. It can be hard to find hotspots and, even when you do find them, to find why those are hotspots. 2. It uses some jQuery-specific frontend code which we can remove now that we don't have this any more. 3. It's only possible to profile the initial request, not any subsequent AJAX requests.
* Replace peek-pg with our own implementationremove-peek-pgSean McGivern2019-07-261-35/+5
| | | | | | | | | | This uses an ActiveRecord subscriber to get queries and calculate the total query time from that. This means that the total will always be consistent with the queries in the table. It does however mean that we could potentially miss some queries that don't go through ActiveRecord. Making this change also allows us to unify the response JSON a little bit, making the frontend slightly simpler as a result.
* Add Rugged calls to performance barStan Hu2019-07-231-0/+1
| | | | | | This will help diagnose the source of excessive I/O from Rugged calls. To implement this, we need to obtain the full list of arguments sent to each request method.
* Remove dead MySQL codeNick Thomas2019-07-231-5/+1
| | | | None of this code can be reached any more, so it can all be removed
* Fix inconsistency in Redis performance bar statssh-fix-redis-performance-barStan Hu2019-07-171-1/+1
| | | | | | | | | | | | | | | | peek-redis resets its counters at the start of an ActionController notification (`start_processing.action_controller`), which causes it to miss some Redis queries that precede it, such as the database load balancer and Rack Attack queries. This produces inconsistencies in the performance bar between the number of calls and their durations with the actual calls in the detailed view. We fix this by getting rid of peek-redis in favor of consolidating all logic into the `RedisDetailed` view, which tracks Redis queries using `RequestStore`. This has the nice property of removing thread-specific counters as well. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64707
* Only save Peek session in Redis when Peek is enabledRémy Coutable2019-07-031-0/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Include all queries in the performance bar summarySean McGivern2019-05-031-0/+12
| | | | | | | | | | | | Rails 5.1's `exec_no_cache` doesn't call `async_exec` any more, but `exec_params`: https://github.com/rails/rails/pull/33188 This means that the DB summary in the performance bar was wrong. The individual query details were still correct (we subscribe to ActiveRecord events for those). We can remove this once the upstream PR to peek-pg is in a release and we update to use that release.
* Migrate correlation and tracing code to LabKitan-use-labkitAndrew Newdigate2019-04-181-1/+1
| | | | | | | | | | | | | | | This change is a fairly straightforward refactor to extract the tracing and correlation-id code from the gitlab rails codebase into the new LabKit-Ruby project. The corresponding import into LabKit-Ruby was in https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1 The code itself remains very similar for now. Extracting it allows us to reuse it in other projects, such as Gitaly-Ruby. This will give us the advantages of correlation-ids and distributed tracing in that project too.
* Provide a performance bar link to the Jaeger UIan-peek-jaegerAndrew Newdigate2019-02-081-0/+1
| | | | | | | | | | Jaeger is a distributed tracing tool. This change adds a "Tracing" link to the performance bar to directly link to a current request in Jaeger. This is useful for two reasons: 1 - it provides affordance to developers that the distributed tracing tool is available, so that it can quickly be discovered. 2 - it allows developers to quickly find a specific trace without having to manually navigate to a second user-interface.
* Remove peek-sidekiqJan Provaznik2018-09-121-1/+0
| | | | | | | | | | The reason for removing this gem is that it's not being maintained anymore. It uses `alias_method_chain` which is deprecated in rails 5 (and removed in 5.1), the issue is pending upstream (including a fix) - https://github.com/suranyami/peek-sidekiq/issues/3 for a while. Peek-sidekiq is used in performance bar for displaying sidekiq statistics.
* remove peek performance_barPirate Praveen2018-04-261-1/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Make Gitaly more prominent in the performance barSean McGivern2018-03-131-2/+2
| | | | | This is as important as SQL timings, and much more important most of the time than GC, Redis, or Sidekiq.
* Don't assume postgresql in two initializersNick Thomas2018-01-301-1/+3
|
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+2
|
* Use gitlab-stylesRémy Coutable2017-12-221-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add Gitaly data to the Peek performance barZeger-Jan van de Weg2017-10-231-0/+1
|
* Bump peek-performance_bar to 1.3.0 and get rid of a monkey-patchrc/bump-peek-performance_barRémy Coutable2017-07-181-4/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Support multiple Redis instances based on queue typePaul Charlton2017-07-111-1/+1
|
* Ensure peek-performance_bar doesn't break existing functionalitiesRémy Coutable2017-06-091-0/+4
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix linting, route, and specsRémy Coutable2017-06-091-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix Rubocop offenses, improve SQL duration format and changelog entryRémy Coutable2017-06-091-3/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Small adjustmentsRémy Coutable2017-06-091-1/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Display queries duration in performance bar queries modalRémy Coutable2017-06-091-30/+12
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't use Pygment,rb, use Rouge instead, and put peek-pg in the :postgres groupRémy Coutable2017-06-091-1/+7
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Store Sherlock::Query in Peek adapterRémy Coutable2017-06-091-0/+32
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* New performance bar that can be enabled with the `p b` shortcutRémy Coutable2017-06-091-0/+9
Signed-off-by: Rémy Coutable <remy@rymai.me>