1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env ruby $LOAD_PATH << './lib' require 'longboat' require 'longboat/jobs/slurm_job_states' #require 'longboat/server' collector = Longboat::Collector.new Longboat::Jobs::SlurmJobStates.new(collector) collector.collect! puts collector.metrics #Longboat::Server.serve!