aboutsummaryrefslogtreecommitdiff
path: root/longboat
diff options
context:
space:
mode:
authorNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 15:35:37 +0000
committerNat Lasseter <nat.lasseter@york.ac.uk>2020-03-02 15:35:37 +0000
commit220ebc31c057bbf47eec1cccbbae8b3cf2190d24 (patch)
tree0ad6a42e2061a585859c3d39785b9623946553f9 /longboat
parent8d34ddd0a30acf59d423bac773ac2d63aafc7044 (diff)
Sinatra might have been overkill for one endpoint, but http serving of prometheus metrics is started.
Diffstat (limited to 'longboat')
-rwxr-xr-xlongboat8
1 files changed, 2 insertions, 6 deletions
diff --git a/longboat b/longboat
index b39d399..a2d1de5 100755
--- a/longboat
+++ b/longboat
@@ -2,7 +2,6 @@
$LOAD_PATH << './lib'
require 'longboat'
-#require 'longboat/server'
collector = Longboat::Collector.new
@@ -10,8 +9,5 @@ jobs = Longboat::Jobs.new
jobs.load(collector)
t = jobs.collect_every
-sleep 5
-puts collector.prometheus_metrics
-t.exit
-
-#Longboat::Server.serve!
+require 'longboat/server'
+Longboat::Server.serve!(collector)