riemann-babbler 0.1.4 → 0.1.5

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.
@@ -9,7 +9,8 @@ class Riemann::Babbler::Disk
9
9
  'nfs',
10
10
  'devpts',
11
11
  'squashfs',
12
- 'proc'
12
+ 'proc',
13
+ 'devtmpfs'
13
14
  ]
14
15
 
15
16
  def plugin
@@ -29,6 +30,8 @@ class Riemann::Babbler::Disk
29
30
  monit_points.each do |point|
30
31
  point_stat = Filesystem.stat point
31
32
  human_point = point == "/" ? "/root" : point
33
+ human_point.gsub!(/^\//, "")
34
+ human_point.gsub!(/\//, "_")
32
35
  disk.merge!({human_point + " block" => 1 - point_stat.blocks_available.to_f/point_stat.blocks})
33
36
  disk.merge!({human_point + " inode" => 1 - point_stat.files_available.to_f/point_stat.files})
34
37
  end
@@ -41,7 +41,7 @@ class Riemann::Babbler::Net
41
41
  end
42
42
  end
43
43
  end
44
- status.each_key { |key| @diff[key] = status[key] - @old_status[key] } if @old_status
44
+ status.each_key { |key| @diff[key] = status[key] - @old_status[key] } unless @old_status.empty?
45
45
  @old_status = status
46
46
  @diff
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
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.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: