aboutsummaryrefslogtreecommitdiff
path: root/lib/longboat/collector.rb
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 14:30:43 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 14:30:43 +0000
commit96537e39ae2faa4c7801423055db26b86f875431 (patch)
tree700ccc30e5157c0aeac571b0e8f0e04cc6a5a713 /lib/longboat/collector.rb
parentcd0f6b103553f547bc21a8447e785c31f7ce858c (diff)
Broke apart job running and metric collection. Jobs are now picked up automagically from lib/jobs
Diffstat (limited to 'lib/longboat/collector.rb')
-rw-r--r--lib/longboat/collector.rb11
1 files changed, 0 insertions, 11 deletions
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