lib/riemann/babbler/plugins/disk.rb in riemann-babbler-0.5.1 vs lib/riemann/babbler/plugins/disk.rb in riemann-babbler-0.5.2

- old
+ new

@@ -26,11 +26,11 @@ point_stat = Filesystem.stat point human_point = point == "/" ? "/root" : point human_point.gsub!(/^\//, "").gsub!(/\//, "_") disk << { :service => plugin.service + " #{human_point} % block", :metric => 1 - point_stat.blocks_available.to_f/point_stat.blocks } disk << { :service => plugin.service + " #{human_point} % inode", :metric => 1 - point_stat.files_available.to_f/point_stat.files } - disk << { :service => plugin.service + " #{human_point} free", :metric => point_stat.blocks_free * point_stat.block_size, :state => 'ok'} - disk << { :service => plugin.service + " #{human_point} total", :metric => point_stat.blocks * point_stat.block_size, :state => 'ok'} + disk << { :service => plugin.service + " #{human_point} total free", :metric => point_stat.blocks_free * point_stat.block_size, :state => 'ok'} + disk << { :service => plugin.service + " #{human_point} total total", :metric => point_stat.blocks * point_stat.block_size, :state => 'ok'} end disk end end