gitlab-org--gitlab-foss/lib/gitlab/metrics
Aleksei Lipniagov 1f9edb7c4a Call `GC::Profiler.clear` only in one place
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.
2019-08-02 09:04:32 +00:00
..
dashboard Move BaseService to Services directory 2019-07-29 23:03:59 +00:00
methods
samplers Call `GC::Profiler.clear` only in one place 2019-08-02 09:04:32 +00:00
subscribers Adjust redis cache metrics 2019-07-19 13:34:04 +00:00
background_transaction.rb
delta.rb
influx_db.rb
instrumentation.rb
method_call.rb
methods.rb
metric.rb Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
null_metric.rb
prometheus.rb
rack_middleware.rb
requests_rack_middleware.rb
sidekiq_metrics_exporter.rb
sidekiq_middleware.rb
system.rb Remove unused method 2019-07-11 18:25:43 +00:00
transaction.rb
web_transaction.rb