riemann-babbler 1.3.9.3 → 1.3.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ class Riemann::Babbler::Http < Riemann::Babbler
12
12
  plugin.set_default(:retry, 0)
13
13
  plugin.set_default(:retry_delay, 0)
14
14
  plugin.set_default(:max_time, 10)
15
+ plugin.set_default(:insecure, false)
15
16
 
16
17
  plugin.set_default(:url, 'http://127.0.0.1:80')
17
18
  end
@@ -19,6 +20,7 @@ class Riemann::Babbler::Http < Riemann::Babbler
19
20
  def collect
20
21
  command = "curl -X#{plugin.http_method} -s"
21
22
  command += " --connect-timeout #{plugin.connect_timeout}"
23
+ command += " --insecure " if plugin.insecure
22
24
  command += " -w '%{http_code}\\n'"
23
25
  command += " --retry #{plugin.retry} --retry-delay #{plugin.retry_delay}"
24
26
  command += " --max-time #{plugin.max_time} --fail"
@@ -16,6 +16,10 @@ class Riemann::Babbler::Net < Riemann::Babbler
16
16
  'tx carrier',
17
17
  'tx compressed']
18
18
 
19
+ def init
20
+ plugin.set_default(:filter, ['rx bytes', 'rx errs', 'rx drop', 'tx bytes', 'tx errs', 'tx drop'])
21
+ end
22
+
19
23
  def collect
20
24
  f = File.read('/proc/net/dev')
21
25
  status = Array.new
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '1.3.9.3'
3
+ VERSION = '1.3.9.4'
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: 1.3.9.3
4
+ version: 1.3.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-10 00:00:00.000000000 Z
12
+ date: 2013-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: riemann-client