riemann-babbler 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,10 +24,10 @@ class Riemann::Babbler::Disk < Riemann::Babbler
24
24
  disk = Array.new
25
25
  monit_points.each do |point|
26
26
  point_stat = Filesystem.stat point
27
- human_point = point == "/" ? " /root" : " " + point
27
+ human_point = point == "/" ? "/root" : point
28
28
  human_point.gsub!(/^\//, "").gsub!(/\//, "_")
29
- disk << { :service => plugin.service + human_point + " block", :metric => 1 - point_stat.blocks_available.to_f/point_stat.blocks }
30
- disk << { :service => plugin.service + human_point + " inode", :metric => 1 - point_stat.files_available.to_f/point_stat.files }
29
+ disk << { :service => plugin.service + " #{human_point} block", :metric => 1 - point_stat.blocks_available.to_f/point_stat.blocks }
30
+ disk << { :service => plugin.service + " #{human_point} inode", :metric => 1 - point_stat.files_available.to_f/point_stat.files }
31
31
  end
32
32
  disk
33
33
  end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.4.2'
3
+ VERSION = '0.4.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  segments:
149
149
  - 0
150
- hash: 2894994163189052610
150
+ hash: 3164197852974391827
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements: