Sha256: e9f61f9ec7fd531b27fb9a94b369f3657563fb95099dbd621394a91d597fabc8

Contents?: true

Size: 240 Bytes

Versions: 54

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

54 entries across 54 versions & 1 rubygems

Version Path
riemann-babbler-1.0.8.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.4 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.9 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.4 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.1.0pre2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.0.6 lib/riemann/babbler/plugins/la.rb