Sha256: a2ff9066bc199b9f369163f968c0ab89009a06482d95ccbf3571b5ecedb0e949

Contents?: true

Size: 176 Bytes

Versions: 9

Compression:

Stored size: 176 Bytes

Contents

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

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

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
riemann-babbler-0.4.3 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.4.2 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.4.1 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.4.0 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.8 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.7 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.6 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.5 lib/riemann/babbler/plugins/la.rb
riemann-babbler-0.3.4 lib/riemann/babbler/plugins/la.rb