2019-07-26 13:03:00 +00:00
|
|
|
require 'peek/adapters/redis'
|
2018-01-11 16:34:01 +00:00
|
|
|
|
2019-07-26 13:03:00 +00:00
|
|
|
Peek::Adapters::Redis.prepend ::Gitlab::PerformanceBar::RedisAdapterWhenPeekEnabled
|
2019-05-03 11:31:01 +00:00
|
|
|
|
2019-07-26 13:03:00 +00:00
|
|
|
Rails.application.config.peek.adapter = :redis, { client: ::Redis.new(Gitlab::Redis::Cache.params) }
|
2018-01-11 16:34:01 +00:00
|
|
|
|
2019-07-26 13:03:00 +00:00
|
|
|
Peek.into Peek::Views::Host
|
|
|
|
Peek.into Peek::Views::ActiveRecord
|
2018-03-08 09:58:24 +00:00
|
|
|
Peek.into Peek::Views::Gitaly
|
2019-07-17 19:33:49 +00:00
|
|
|
Peek.into Peek::Views::RedisDetailed
|
2019-07-21 05:34:46 +00:00
|
|
|
Peek.into Peek::Views::Rugged
|
2019-08-02 09:04:32 +00:00
|
|
|
|
|
|
|
# `Peek::Views::GC` is currently disabled in production, as it runs with every request
|
|
|
|
# even if PerformanceBar is inactive and clears `GC::Profiler` reports we need for metrics.
|
|
|
|
# Check https://gitlab.com/gitlab-org/gitlab-ce/issues/65455
|
|
|
|
Peek.into Peek::Views::GC if Rails.env.development?
|
|
|
|
|
2019-02-18 20:57:22 +00:00
|
|
|
Peek.into Peek::Views::Tracing if Labkit::Tracing.tracing_url_enabled?
|