Do not declare the collector as a singleton

Fixes #5446
This commit is contained in:
Pier-Hugues Pellerin 2016-06-02 09:28:45 -04:00
parent c2a76b9aed
commit 189adea066

View file

@ -17,7 +17,6 @@ module LogStash module Instrument
class Collector
include LogStash::Util::Loggable
include Observable
include Singleton
SNAPSHOT_ROTATION_TIME_SECS = 1 # seconds
SNAPSHOT_ROTATION_TIMEOUT_INTERVAL_SECS = 10 * 60 # seconds
@ -59,10 +58,6 @@ module LogStash module Instrument
end
end
def clear
@metric_store = MetricStore.new
end
# Monitor the `Concurrent::TimerTask` this update is triggered on every successful or not
# run of the task, TimerTask implement Observable and the collector acts as
# the observer and will keep track if something went wrong in the execution.