Class: Appsignal::Probes::SidekiqProbe::Sidekiq7Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/probes/sidekiq.rb

Class Method Summary collapse

Class Method Details

.hostnameObject



13
14
15
16
17
18
19
# File 'lib/appsignal/probes/sidekiq.rb', line 13

def self.hostname
  host = nil
  ::Sidekiq.redis do |c|
    host = c.config.host
  end
  host
end

.redis_infoObject



7
8
9
10
11
# File 'lib/appsignal/probes/sidekiq.rb', line 7

def self.redis_info
  redis_info = nil
  ::Sidekiq.redis { |c| redis_info = c.info }
  redis_info
end