kurchatov 0.0.7.pre.3 → 0.0.7.pre.4
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 +4 -4
- data/.travis.yml +10 -5
- data/CHANGELOG +1 -1
- data/lib/kurchatov/mixin/event.rb +1 -3
- data/lib/kurchatov/monitor.rb +0 -5
- data/lib/kurchatov/plugin/riemann.rb +1 -0
- data/lib/kurchatov/responders/http.rb +1 -1
- data/lib/kurchatov/responders/riemann.rb +2 -1
- data/lib/kurchatov/responders/udp.rb +1 -1
- data/lib/kurchatov/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b684096e5a0a0660c2a021b6ec4cb9110174deb8
|
|
4
|
+
data.tar.gz: 834b7c8042bf5fba6d8905b9393a7486d7d18b44
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a6b1faa40a4ed065857b0f3676f0a3044bf88559d5e155b396ef2d2bf42f7adf3db6f4e7af04ef842c25eab39fda1721b9b344d365d1f1c9a974121c5eb5037
|
|
7
|
+
data.tar.gz: 32eceb3255e8f0c7a88d837a2c6a062928e25d03f42f86dc311496b2d9fa3a7fd0f2fe7ba66b78bcd1984a415f0e6e73f1a2964e2b450485679e5d14b8fe8d41
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* Version 0.0.6.pre.4: Required block for plugin
|
|
5
5
|
* Version 0.0.6.pre.5: Improve http responder, add monitor
|
|
6
6
|
* Version 0.0.6: ruby 1.8.7 support
|
|
7
|
-
* Version 0.0.7
|
|
7
|
+
* Version 0.0.7: add FreeBSD support, responders as plugins
|
|
@@ -11,8 +11,8 @@ module Kurchatov
|
|
|
11
11
|
|
|
12
12
|
def event(hash = {})
|
|
13
13
|
@normilize = normalize_event(hash)
|
|
14
|
-
Log.info("Mock message for test plugin: #{hash.inspect}") if Kurchatov::Config[:test_plugin]
|
|
15
14
|
return unless @normilize
|
|
15
|
+
Log.info("Mock message for test plugin: #{hash.inspect}") if Kurchatov::Config[:test_plugin]
|
|
16
16
|
events << hash
|
|
17
17
|
end
|
|
18
18
|
|
|
@@ -20,13 +20,11 @@ module Kurchatov
|
|
|
20
20
|
|
|
21
21
|
def normalize_event(hash = {})
|
|
22
22
|
hash[:description] = hash[:desc] if hash[:description].nil? && hash[:desc]
|
|
23
|
-
|
|
24
23
|
hash[:metric] = hash[:metric].to_f if hash[:metric].kind_of?(String)
|
|
25
24
|
if hash[:metric].kind_of?(Float)
|
|
26
25
|
hash[:metric] = 0.0 if hash[:metric].nan?
|
|
27
26
|
hash[:metric] = ((hash[:metric] * 100).round/100.to_f) # 1.8.7 round
|
|
28
27
|
end
|
|
29
|
-
|
|
30
28
|
set_diff_metric(hash)
|
|
31
29
|
set_event_state(hash)
|
|
32
30
|
return false if hash[:miss]
|
data/lib/kurchatov/monitor.rb
CHANGED
|
@@ -18,10 +18,6 @@ module Kurchatov
|
|
|
18
18
|
@plugin.name
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
def type
|
|
22
|
-
@plugin.class.to_s
|
|
23
|
-
end
|
|
24
|
-
|
|
25
21
|
def config
|
|
26
22
|
@plugin.plugin_config
|
|
27
23
|
end
|
|
@@ -73,7 +69,6 @@ module Kurchatov
|
|
|
73
69
|
@tasks.map do |t|
|
|
74
70
|
{
|
|
75
71
|
"name" => t.name,
|
|
76
|
-
"type" => t.type,
|
|
77
72
|
"config" => t.config,
|
|
78
73
|
"errors" => {"count" => t.count_errors, "last" => t.last_error, "time" => t.last_error_at}
|
|
79
74
|
}
|
data/lib/kurchatov/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kurchatov
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.7.pre.
|
|
4
|
+
version: 0.0.7.pre.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vasiliev Dmitry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: beefcake
|