Sha256: 746b6495daf0767ffb0ab37279b54f70a0766898383b09d50571e322a6954502

Contents?: true

Size: 246 Bytes

Versions: 30

Compression:

Stored size: 246 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').scan(/[\d\.]+/).first.to_f }
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
riemann-babbler-1.4.0 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.4 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.9 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.4 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.3.0 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.9 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.7 lib/riemann/babbler/plugins/la.rb