From 96537e39ae2faa4c7801423055db26b86f875431 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 2 Mar 2020 14:30:43 +0000 Subject: Broke apart job running and metric collection. Jobs are now picked up automagically from lib/jobs --- lib/longboat/collector.rb | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/longboat/collector.rb') diff --git a/lib/longboat/collector.rb b/lib/longboat/collector.rb index ccf103b..2b61c8d 100644 --- a/lib/longboat/collector.rb +++ b/lib/longboat/collector.rb @@ -2,7 +2,6 @@ module Longboat class Collector def initialize @metrics = {} - @jobs = [] end def report!(name, value, help: nil, type: nil, labels: {}) @@ -30,15 +29,5 @@ module Longboat end res end - - def register!(job) - @jobs << job - end - - def collect! - @jobs.each do |job| - job.run - end - end end end -- cgit v1.2.1