mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
remove metrics beta gate
This commit is contained in:
parent
3c93f643af
commit
d0eb6f0f46
5 changed files with 12 additions and 20 deletions
|
@ -6,10 +6,8 @@ require "zlib"
|
|||
require "set"
|
||||
require "base64"
|
||||
|
||||
if ENV["SIDEKIQ_METRICS_BETA"]
|
||||
require "sidekiq/metrics/deploy"
|
||||
require "sidekiq/metrics/query"
|
||||
end
|
||||
require "sidekiq/metrics/deploy"
|
||||
require "sidekiq/metrics/query"
|
||||
|
||||
module Sidekiq
|
||||
# Retrieve runtime statistics from Redis regarding
|
||||
|
|
|
@ -425,4 +425,4 @@ module Sidekiq # :nodoc:
|
|||
end
|
||||
|
||||
require "sidekiq/systemd"
|
||||
require "sidekiq/metrics/tracking" if ENV["SIDEKIQ_METRICS_BETA"]
|
||||
require "sidekiq/metrics/tracking"
|
||||
|
|
|
@ -2,7 +2,6 @@ require "concurrent"
|
|||
|
||||
module Sidekiq
|
||||
module Metrics
|
||||
# TODO Support apps without concurrent-ruby
|
||||
Counter = ::Concurrent::AtomicFixnum
|
||||
|
||||
# Implements space-efficient but statistically useful histogram storage.
|
||||
|
|
|
@ -121,14 +121,12 @@ module Sidekiq
|
|||
end
|
||||
end
|
||||
|
||||
if ENV["SIDEKIQ_METRICS_BETA"] == "1"
|
||||
Sidekiq.configure_server do |config|
|
||||
exec = Sidekiq::Metrics::ExecutionTracker.new(config)
|
||||
config.server_middleware do |chain|
|
||||
chain.add Sidekiq::Metrics::Middleware, exec
|
||||
end
|
||||
config.on(:beat) do
|
||||
exec.flush
|
||||
end
|
||||
Sidekiq.configure_server do |config|
|
||||
exec = Sidekiq::Metrics::ExecutionTracker.new(config)
|
||||
config.server_middleware do |chain|
|
||||
chain.add Sidekiq::Metrics::Middleware, exec
|
||||
end
|
||||
config.on(:beat) do
|
||||
exec.flush
|
||||
end
|
||||
end
|
||||
|
|
|
@ -30,13 +30,10 @@ module Sidekiq
|
|||
"Queues" => "queues",
|
||||
"Retries" => "retries",
|
||||
"Scheduled" => "scheduled",
|
||||
"Dead" => "morgue"
|
||||
"Dead" => "morgue",
|
||||
"Metrics" => "metrics"
|
||||
}
|
||||
|
||||
if ENV["SIDEKIQ_METRICS_BETA"] == "1"
|
||||
DEFAULT_TABS["Metrics"] = "metrics"
|
||||
end
|
||||
|
||||
class << self
|
||||
def settings
|
||||
self
|
||||
|
|
Loading…
Reference in a new issue