riemann-babbler 0.0.5 → 0.0.6

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.
data/bin/riemann-babbler CHANGED
@@ -12,7 +12,7 @@ require File.expand_path('../../lib/deep_merge', __FILE__)
12
12
  require File.expand_path('../../lib/riemann/babbler/plugin', __FILE__)
13
13
 
14
14
  opts = Trollop::options do
15
- version "Riemann babbler #{Babbler::VERSION}"
15
+ version "Riemann babbler #{Riemann::Babbler::VERSION}"
16
16
  banner <<-EOS
17
17
  Riemann-babbler is plugin manager for riemann-tools.
18
18
 
data/config.yml CHANGED
@@ -12,14 +12,14 @@ plugins:
12
12
  interval: 1
13
13
 
14
14
  la:
15
- service: load avverage
15
+ service: la_1
16
16
  interval: 1
17
17
  states:
18
18
  warning: 4
19
19
  critical: 10
20
20
 
21
21
  disk:
22
- service: disk usage
22
+ service: disk
23
23
  interval: 1
24
24
  states:
25
25
  warning: 0.7
@@ -33,7 +33,7 @@ plugins:
33
33
  critical: 0.85
34
34
 
35
35
  memory:
36
- service: memory ussage
36
+ service: memory
37
37
  interval: 1
38
38
  report_free: true
39
39
  report_total: true
@@ -42,5 +42,5 @@ plugins:
42
42
  critical: 0.8
43
43
 
44
44
  net:
45
- service: net ussage
45
+ service: net
46
46
  interval: 5
@@ -20,7 +20,7 @@ class Riemann::Babbler::Disk
20
20
  def tick
21
21
  disk.each do |point, free|
22
22
  report({
23
- :service => plugin.service + " on #{point}",
23
+ :service => plugin.service + " #{point}",
24
24
  :state => state(free),
25
25
  :metric => free
26
26
  })
@@ -28,7 +28,7 @@ class Riemann::Babbler::Net
28
28
  if line =~ /\s*(\w+?):\s*([\s\d]+)\s*/
29
29
  iface = $1
30
30
  WORDS.map do |service|
31
- "#{iface} #{service}"
31
+ "#{plugin.service} #{iface} #{service}"
32
32
  end.zip(
33
33
  $2.split(/\s+/).map { |str| str.to_i }
34
34
  ).each do |service, value|
@@ -1,3 +1,5 @@
1
- module Babbler
2
- VERSION = '0.0.5'
1
+ module Riemann
2
+ module Babbler
3
+ VERSION = '0.0.6'
4
+ end
3
5
  end
@@ -3,7 +3,7 @@ require File.expand_path('../lib/riemann/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "riemann-babbler"
6
- s.version = Babbler::VERSION
6
+ s.version = Riemann::Babbler::VERSION
7
7
  s.authors = ["Vasiliev D.V."]
8
8
  s.email = %w(vadv.mkn@gmail.com)
9
9
  s.homepage = "https://github.com/vadv/riemann-babbler"
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.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -131,7 +131,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: 4407895469086512717
134
+ hash: -1253155320439861384
135
135
  required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  none: false
137
137
  requirements: