kurchatov 0.0.7.pre.3 → 0.0.7.pre.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dcf1acef3ab194c2bf52f4d746eafea64154a11
4
- data.tar.gz: 4206c83a1095b020bba4632e8b87fea176c929d2
3
+ metadata.gz: b684096e5a0a0660c2a021b6ec4cb9110174deb8
4
+ data.tar.gz: 834b7c8042bf5fba6d8905b9393a7486d7d18b44
5
5
  SHA512:
6
- metadata.gz: a436039f6ed49d7044dc853b2fa94f7acb43d379c47e34292159b5a9c49d1531035e725992d32973f6538f0236cde79faf5f727cdbfc4774a1cf5e05e8cd9554
7
- data.tar.gz: d9934ddb0b92c1f2d072aa936999b48ab7e964ef2abaab58de630f2e2a45e6bc7e0845ce43efa64a1c4c9d09e3b35a720fb2b8c5c33ff4568df4116b68eb6cc5
6
+ metadata.gz: 9a6b1faa40a4ed065857b0f3676f0a3044bf88559d5e155b396ef2d2bf42f7adf3db6f4e7af04ef842c25eab39fda1721b9b344d365d1f1c9a974121c5eb5037
7
+ data.tar.gz: 32eceb3255e8f0c7a88d837a2c6a062928e25d03f42f86dc311496b2d9fa3a7fd0f2fe7ba66b78bcd1984a415f0e6e73f1a2964e2b450485679e5d14b8fe8d41
data/.travis.yml CHANGED
@@ -1,9 +1,14 @@
1
- os: [linux, osx]
1
+ os:
2
+ - linux
3
+ - osx
2
4
 
3
5
  language:
4
- - 'ruby'
6
+ - ruby
7
+
5
8
  rvm:
6
- - '1.9.3'
7
- - '2.0.0'
8
- - '2.1.0'
9
+ - 1.9.3
10
+ - 2.0.0
11
+ - 2.1.0
12
+ - 1.8.7
13
+
9
14
  script: "./tests/run.sh"
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.pre.1: add FreeBSD support, responders as plugins
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]
@@ -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
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'kurchatov/plugin'
4
4
  require 'kurchatov/mashie'
5
+ require 'timeout'
5
6
 
6
7
  module Kurchatov
7
8
  module Plugins
@@ -1,4 +1,4 @@
1
- name 'http'
1
+ name 'http responder'
2
2
  always_start true
3
3
 
4
4
  default[:host], default[:port] = Kurchatov::Config[:http_responder].to_s.split(":")
@@ -1,7 +1,8 @@
1
1
  require 'kurchatov/riemann/client'
2
2
 
3
- name 'riemann'
3
+ name 'riemann responder'
4
4
  always_start true
5
+ ignore_errors true
5
6
 
6
7
  default[:hosts] = Kurchatov::Config[:riemann_responder]
7
8
 
@@ -1,4 +1,4 @@
1
- name 'udp'
1
+ name 'udp responder'
2
2
  always_start true
3
3
 
4
4
  default[:host], default[:port] = Kurchatov::Config[:udp_responder].to_s.split(":")
@@ -1,3 +1,3 @@
1
1
  module Kurchatov
2
- VERSION = "0.0.7.pre.3"
2
+ VERSION = "0.0.7.pre.4"
3
3
  end
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.3
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-09 00:00:00.000000000 Z
11
+ date: 2014-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: beefcake