Sha256: 8b6469d3fb462360543175a39d8765292229b1f8ca0a113f22dfa7c7a3e21cba

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 Bytes

Contents

require 'collectd'

Collectd::add_server 1
Stats = Collectd::ruby_collectd(:test)
Stats.with_full_proc_stats

c = 0
loop do
  Stats.ping(:fun).gauge = 42 + Math.sin(Time.now.to_f / 600) * 23.5
  Stats.cpu(:time).counter = c
  c += 1
  Thread.pass
  sleep 0.01
  print '.'
  STDOUT.flush
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
astro-collectd-0.0.10 examples/sender.rb
astro-collectd-0.0.11 examples/sender.rb
astro-collectd-0.0.12 examples/sender.rb
astro-collectd-0.0.9 examples/sender.rb
collectd-0.0.15 examples/sender.rb
collectd-0.0.12 examples/sender.rb