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

require 'longboat'

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

# Start collection
collector = Longboat::Collector.new(config)
raiders = Longboat::Raiders.new(collector, config)
t = raiders.raid_every

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