Sha256: 22171cc9d691193d380ebcfca918edceae3372a9b1df2054b3a70cef76e7652b

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

$: << ::File.expand_path("../lib/", __FILE__)

require "fnordmetric"

FnordMetric.namespace :blubber do

  widget 'MyDash', nil

  gauge :blubbers_delta, :tick => 60
  gauge :blubbers_total, :tick => 10, :progressive => true

  event :foobar do
    1.times do # simulate load
      incr(:blubbers_total, 1)
      incr(:blubbers_delta, 1) 
    end
    #puts "fuuu: #{data} ! #{key(:blubbers_total)}"
  end

end

FnordMetric.run 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fnordmetric-0.5.0 server.rb