Sha256: 55c9769b900cf2c71ffbbf4a944335bf7e329ea1407e60cd8e57ce9952845cc3
Contents?: true
Size: 477 Bytes
Versions: 3
Compression:
Stored size: 477 Bytes
Contents
$: << ::File.expand_path("../../../fnordmetric/lib/", __FILE__) require "fnordmetric" FnordMetric.namespace :fn do timeseries_gauge :unicorns_seen, :tick => 30.seconds, :calculate => :average, :series => [:num_unicorns] event :unicorn_seen do incr :unicorns_seen, :num_unicorns, rand(5) end end Thread.new do api = FnordMetric::API.new loop do api.event(:_type => :unicorn_seen) sleep rand(10)/10.to_f end end FnordMetric.standalone
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fnordmetric-1.0.1 | doc/minimal_example.rb |
fnordmetric-1.0.0 | doc/minimal_example.rb |
fnordmetric-0.9.7 | doc/minimal_example.rb |