lib/riemann/babbler/plugins/la.rb in riemann-babbler-0.2.8 vs lib/riemann/babbler/plugins/la.rb in riemann-babbler-0.3.0

- old
+ new

@@ -1,24 +1,10 @@ class Riemann::Babbler::La include Riemann::Babbler - def plugin - options.plugins.la + def collect + { + "la_1" => File.read('/proc/loadavg').split(/\s+/)[2].to_f + } end - def la - File.read('/proc/loadavg').split(/\s+/)[2].to_f - end - - def tick - current_state = la - status = { - :service => plugin.service, - :state => state(current_state), - :metric => current_state - } - report status - end - end - -Riemann::Babbler::La.run