Commit Graph

29 Commits

Author SHA1 Message Date
Alejandro Rodríguez a99bf447a2 Remove Gitlab::Git::Repository#rugged and Gollum code
Cleanup code, and refactor tests that still use Rugged. After this, there should
be no Rugged code that access the instance's repositories on non-test
environments. There is still some rugged code for other tasks like the
repository import task, but since it doesn't access any repository storage path
it can stay.
2018-10-02 16:34:28 -03:00
Stan Hu 7db1c1575f Remove instrumentation Rouge::Plugins::{Redcarpet,CommonMark}
The removal in 4d376c667d had an unintended
side effect in that it got rid of the `require 'rouge/plugins/redcarpet'`.
2018-07-23 09:52:13 -07:00
Stan Hu 4d376c667d Remove method instrumentation for Banzai filters and reference parsers
For one README.md file, this instrumentation was adding several seconds and
significant RAM and CPU overhead since these filters often iterate through
all HTML nodes in tight loops.

Relates to #49409
2018-07-22 22:17:05 -07:00
Felipe Artur a9d0deebd2 Enable prometheus metrics by default 2018-05-07 08:46:23 +00:00
blackst0ne aa60db6cee Add CommonMark markdown engine 2018-03-07 23:14:41 +11:00
Pawel Chojnacki cdcbeaccbe Move prometheus middle ware to prometheus initialized. 2017-11-23 23:32:55 +01:00
Grzegorz Bizon 4da03e9977 Merge branch 'pawel/metrics-to-prometheus-33643' into 'master'
Add all InfluxDB metrics to prometheus

See merge request gitlab-org/gitlab-ce!13891
2017-11-06 21:17:24 +00:00
Sean McGivern 045795d0d9 Merge branch 'remove-ensure-ref-fetched-from-controllers' into 'master'
removed the #ensure_ref_fetched from all controllers

Closes #36061

See merge request gitlab-org/gitlab-ce!15129
2017-11-06 17:10:18 +00:00
Francisco Javier López bf0331dc72 Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00
micael.bergeron 5ab3ed7a9a align with the comments 2017-11-06 09:23:41 -05:00
micael.bergeron cd88fa8f80 removed the #ensure_ref_fetched from all controllers
also, I refactored the MergeRequest#fetch_ref method to express
the side-effect that this method has.

  MergeRequest#fetch_ref -> MergeRequest#fetch_ref!
  Repository#fetch_source_branch -> Repository#fetch_source_branch!
2017-11-03 08:13:11 -04:00
Pawel Chojnacki c97dc61a9e Cleanup transaction metrics 2017-11-02 18:11:43 +01:00
Pawel Chojnacki 03b38a4a8d Add GC sampler and small refactor of samplers 2017-11-02 18:09:21 +01:00
Stan Hu 31e3f47280 Disable Unicorn sampling in Sidekiq since there are no Unicorn sockets to monitor
This reduces some polling overhead and reduces the need to aggregate
empty metrics from the Sidekiq worker.
2017-11-01 08:15:59 -07:00
Tiago Botelho 6d8e102c74 Adds cacheless render to Banzai object render 2017-09-06 15:35:35 +01:00
Jarka Kadlecova 658e89a8b7 Instrument MergeRequest#fetch_ref 2017-09-01 09:36:37 +02:00
Jarka Kadlecova 7ba19ab620 Instrument MergeRequest#ensure_ref_fetched 2017-08-28 15:21:34 +02:00
Tiago Botelho 4236c2f055 Adds link_to_gfm method instrumentation 2017-07-25 10:51:21 +01:00
Douwe Maan be08202b4b Merge branch 'bjk/metric_names' into 'master'
Update metric names to match Prometheus guidelines.

Closes #35031

See merge request !12812
2017-07-14 18:05:18 +00:00
Sean McGivern a5b8d4bcea Instrument Ability 2017-07-14 10:46:49 +01:00
Pawel Chojnacki 2d0741e562 Rename ConnectionRackMiddleware to RequestsRackMiddleware.
+ fix tests after metrics rename
2017-07-13 00:46:17 +02:00
Pawel Chojnacki 1eca48819a Merge prometheus unicorn sampler settigns within monitoring settings 2017-07-05 00:51:01 +02:00
Paweł Chojnacki 26ac691a68 Instrument Unicorn with Ruby exporter 2017-07-04 15:28:34 +00:00
Grzegorz Bizon 0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Sean McGivern 54c0c0cd17 Instrument MergeRequestDiff#load_commits
This instrumentation isn't needed strictly for performance measurements, but
just to see which controller actions call this method at all. See
<https://gitlab.com/gitlab-org/gitlab-ce/issues/30224#note_32306159> for more
details.
2017-06-14 12:01:38 +01:00
Robert Speicher bdc1a55ede Merge branch '29389-fix-already-initialized-constants' into 'master'
Remove explicit `require` calls, and use `require_dependency` when needed

Closes #29389

See merge request !9899
2017-03-14 15:07:51 +00:00
Rémy Coutable c5e34da01d
Remove explicit `require` calls, and use `require_dependency` when needed
See
http://guides.rubyonrails.org/autoloading_and_reloading_constants.html
for more info.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-13 14:29:55 +01:00
Bob Van Landuyt b55936bf0b Don't instrument `app/services/concerns` 2017-03-13 08:27:52 +01:00
Adam Niedzielski ee31872777 Execute metrics initializer earlier
This makes sure that Gitlab::Metrics::RackMiddleware is added before
Gitlab::EtagCaching::Middleware.
2017-03-01 18:15:28 +01:00