Class: LogStash::Instrument::PeriodicPoller::DeadLetterQueue

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/instrument/periodic_poller/dlq.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Base

#metric

Instance Method Summary collapse

Methods inherited from Base

#start, #stop, #update

Constructor Details

#initialize(metric, agent, options = {}) ⇒ DeadLetterQueue

Returns a new instance of DeadLetterQueue.



6
7
8
9
10
# File 'lib/logstash/instrument/periodic_poller/dlq.rb', line 6

def initialize(metric, agent, options = {})
  super(metric, options)
  @metric = metric
  @agent = agent
end

Instance Method Details

#collectObject



12
13
14
15
16
17
18
19
# File 'lib/logstash/instrument/periodic_poller/dlq.rb', line 12

def collect
  pipelines = @agent.running_user_defined_pipelines
  pipelines.each do |_, pipeline|
    unless pipeline.nil?
      pipeline.collect_dlq_stats
    end
  end
end