riemann-babbler 2.0.0 → 2.0.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 358f2b609f9881faf6872b9bc68ef17aafbfa1ee
|
4
|
+
data.tar.gz: 7d977dfb982b94cd5105666cb6245fa9e25e423b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d2898ffcb6410af9260f75804e7241eef9b2d5ea8f0ecc5269b6b28369101e98333f437e3fbcbdacf2f72d11ee54a800b3941279c8f9938462d96ac90d7ac2f
|
7
|
+
data.tar.gz: eb5291cf6f44c2333ecd5ec0c786eb75d323c7b609f334ab90de21d9be7fa4661db2332b142170f6768b527ed234252a0cf1cc542626f61ec614141da6c009c7
|
data/Gemfile.lock
CHANGED
@@ -36,11 +36,11 @@ class Riemann::Babbler::Plugin::DiskStat < Riemann::Babbler::Plugin
|
|
36
36
|
next if !!(dev.match /\d+$/ || !(dev.match =~ /^xvd/))
|
37
37
|
# читаем все фильтры
|
38
38
|
plugin.filter.each do |filter|
|
39
|
-
status << { :service => "#{plugin.service} #{dev} #{filter}", :metric => values[WORDS.index(filter)], :as_diff => true }
|
39
|
+
status << { :service => "#{plugin.service} #{dev} #{filter}", :metric => values[WORDS.index(filter)].to_f/plugin.interval, :as_diff => true }
|
40
40
|
end
|
41
41
|
# добавляем iops
|
42
42
|
iops = values[WORDS.index('reads reqs')].to_i + values[WORDS.index('writes reqs')].to_i
|
43
|
-
status << { :service => "#{plugin.service} #{dev} iops", :metric => iops, :as_diff => true }
|
43
|
+
status << { :service => "#{plugin.service} #{dev} iops", :metric => iops.to_f/plugin.interval, :as_diff => true }
|
44
44
|
end
|
45
45
|
end
|
46
46
|
status
|
@@ -36,7 +36,7 @@ class Riemann::Babbler::Plugin::Net < Riemann::Babbler::Plugin
|
|
36
36
|
$2.split(/\s+/).map { |str| str.to_i }
|
37
37
|
).each do |service, value|
|
38
38
|
next unless plugin.filter.include? service
|
39
|
-
status << { :service => "#{plugin.service} #{iface} #{service}", :metric => value, :as_diff => true }
|
39
|
+
status << { :service => "#{plugin.service} #{iface} #{service}", :metric => value.to_f/plugin.interval, :as_diff => true }
|
40
40
|
end
|
41
41
|
end
|
42
42
|
status
|
@@ -18,7 +18,7 @@ class Riemann::Babbler::Plugin::Nginx < Riemann::Babbler::Plugin
|
|
18
18
|
status = Array.new
|
19
19
|
lines = rest_get(plugin.status_url).split("\n")
|
20
20
|
lines[2].scan(/\d+/).each_with_index do |value, index|
|
21
|
-
status << { :service => plugin.service + " #{NGINX_STATUS_1[index]}", :metric => value.
|
21
|
+
status << { :service => plugin.service + " #{NGINX_STATUS_1[index]}", :metric => value.to_f/plugin.interval, :as_diff => true }
|
22
22
|
end
|
23
23
|
# line[0]: Active connections: XXXX
|
24
24
|
status << { :service => plugin.service + ' active', :metric => lines[0].split(':')[1].strip.to_i }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riemann-babbler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasiliev Dmitry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: riemann-client
|