Sha256: efaf497d7fbf60a86f81f385f87cc1de455315e991d9ca1ab7728d47a3d08e76

Contents?: true

Size: 151 Bytes

Versions: 2

Compression:

Stored size: 151 Bytes

Contents

class Riemann::Babbler::La
  include Riemann::Babbler

  def collect
  { 
    "la_1" => File.read('/proc/loadavg').split(/\s+/)[2].to_f
  }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
riemann-babbler-0.3.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.0 lib/riemann/babbler/plugins/la.rb