Class: Promenade::Pitchfork::Stats

Inherits:
Object
  • Object
show all
Defined in:
lib/promenade/pitchfork/stats.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instrumentObject



19
20
21
# File 'lib/promenade/pitchfork/stats.rb', line 19

def self.instrument
  new.instrument
end

Instance Method Details

#instrumentObject



14
15
16
17
# File 'lib/promenade/pitchfork/stats.rb', line 14

def instrument
  Promenade.metric(:pitchfork_workers).set({}, workers_count)
  Promenade.metric(:pitchfork_live_workers).set({}, live_workers_count)
end