aboutsummaryrefslogtreecommitdiff
path: root/longboat
blob: ee7bfa95909d3c0ac6c00610f5ac71d91a2147b8 (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(config)
jobs = Longboat::Jobs.new(collector, config)
jobs.load!
t = jobs.collect_every

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