Sha256: 9a1b075eeaf9b3215e12ebb7227081412ff379945edfdeedce06e36876c78344

Contents?: true

Size: 240 Bytes

Versions: 4

Compression:

Stored size: 240 Bytes

Contents

#encoding: utf-8

class Riemann::Babbler::La < Riemann::Babbler

  def collect
    { :service => plugin.service + " la_1", :description => "LA averaged over 1 minute", :metric => File.read('/proc/loadavg').split(/\s+/)[2].to_f }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
riemann-babbler-0.8.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.8.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.8.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.8.5 lib/riemann/babbler/plugins/la.rb