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.2.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.4 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.2.0 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.1.9 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.1.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-1.1.6 lib/riemann/babbler/plugins/la.rb