Sha256: 133664aed631351dc18143417f4cf1d01f8320a875af0e7c1c9e84e6bfead83e

Contents?: true

Size: 756 Bytes

Versions: 3

Compression:

Stored size: 756 Bytes

Contents

# frozen_string_literal: true

require "anyway"

module Yabeda
  module Sidekiq
    class Config < ::Anyway::Config
      config_name :yabeda_sidekiq

      # By default all sidekiq worker processes (servers) collects global metrics about whole Sidekiq installation.
      # Client processes (everything else that is not Sidekiq worker) by default doesn't.
      # With this config you can override this behavior:
      #  - force disable if you don't want multiple Sidekiq workers to report the same numbers (that causes excess load to both Redis and monitoring)
      #  - force enable if you want non-Sidekiq process to collect them (like dedicated metric exporter process)
      attr_config collect_cluster_metrics: ::Sidekiq.server?
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yabeda-sidekiq-0.8.2 lib/yabeda/sidekiq/config.rb
yabeda-sidekiq-0.8.1 lib/yabeda/sidekiq/config.rb
yabeda-sidekiq-0.8.0 lib/yabeda/sidekiq/config.rb