riemann-babbler 0.5.4 → 0.5.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.
- data/bin/riemann-babbler +5 -0
- data/lib/riemann/version.rb +1 -1
- metadata +2 -2
data/bin/riemann-babbler
CHANGED
@@ -5,6 +5,7 @@ require 'trollop'
|
|
5
5
|
require 'yaml'
|
6
6
|
require 'configatron'
|
7
7
|
require 'logger'
|
8
|
+
require 'resolv'
|
8
9
|
|
9
10
|
require File.expand_path('../../lib/riemann/version', __FILE__)
|
10
11
|
require File.expand_path('../../lib/deep_merge', __FILE__)
|
@@ -78,6 +79,10 @@ unless configatron.plugins.files.nil?
|
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
82
|
+
# патч на dns resolv
|
83
|
+
ipaddress = Resolv.new.getaddresses(configatron.riemann.host)
|
84
|
+
configatron.riemann.host = ipaddress[rand(ipaddress.length)]
|
85
|
+
|
81
86
|
# start plugins
|
82
87
|
plugins.each { |plugin| require plugin }
|
83
88
|
|
data/lib/riemann/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
segments:
|
166
166
|
- 0
|
167
|
-
hash:
|
167
|
+
hash: 3108950723921484230
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|