Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (12 sloc) 0.393 kb
#!/usr/bin/env ruby
require 'rubygems'
$: << File.dirname(__FILE__)+'/../lib'
require 'graphiterb'
Configliere.use :commandline, :config_file
Settings.resolve!
class ToyMonitor < Graphiterb::Monitors::PeriodicMonitor
def get_metrics metrics, since
metrics << [scope('random', graphite_identifier), rand]
end
end
ToyMonitor.new('toy', :iters => 5, :time => 5).run! if $0 == __FILE__
Jump to Line
Something went wrong with that request. Please try again.