Skip to content
This repository

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 14 lines (12 sloc) 0.393 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/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__
Something went wrong with that request. Please try again.