# 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