lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.2.8 vs lib/riemann/babbler/plugins/memory.rb in riemann-babbler-0.3.0
- old
+ new
@@ -1,12 +1,8 @@
class Riemann::Babbler::Memory
include Riemann::Babbler
- def plugin
- options.plugins.memory
- end
-
def memory
m = File.read('/proc/meminfo').split(/\n/).inject({}) { |info, line|
x = line.split(/:?\s+/)
info[x[0]] = x[1].to_i
info
@@ -36,7 +32,5 @@
:metric => current_state[:total]
}) if plugin.report_total
end
end
-
-Riemann::Babbler::Memory.run