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) jobs = Longboat::Jobs.new(collector, config) t = jobs.collect_every # Serve metrics on HTTP Longboat::Server.serve!(collector, config)