aboutsummaryrefslogtreecommitdiff
path: root/longboat
blob: 00e4ce5ca65f9b612e70950efd13d2e6dcc8c3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env ruby
$LOAD_PATH << './lib'

require 'longboat'

# Handle command line options
config = Longboat::Config.parse!

# Start collection
collector = Longboat::Collector.new
jobs = Longboat::Jobs.new(collector, config)
jobs.load!
t = jobs.collect_every

# Serve metrics on HTTP
Longboat::Server.serve!(collector, config)