sensu 0.19.2 → 0.20.0

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: 99c33df6cbd1a19900623d21559fdaca99718bce
4
- data.tar.gz: 897bd3f687d5011cbe374926528f5de5b58a9e3e
3
+ metadata.gz: f4be5e23925dd65b4c9e71546578bdf0785f2832
4
+ data.tar.gz: a1b30fee39f43655d0a6e67a9c07d47604f4e091
5
5
  SHA512:
6
- metadata.gz: c07d7284a6b022a64e3cea643755191527056e269b060cead2c44ad034027bfff95fdf62a6d8ec8f617939822386444e1f2fc53fca1e15f73f98d94dc4a928f2
7
- data.tar.gz: bcb8ca39fe5add52af3ed2416e339cb6ad6366cd78c7a5892ba88e05c55c19e04ff928f9c3a58a718e34ef18a4834459a51ff4bb2f5f4eb734a25f664f0e1e24
6
+ metadata.gz: 77b81537b1dfb582730bd5187a3d103a607b5b5b8690f51bb092fe75af7be3c3248f3358ba802f52d0944041d8bbb0eadd0554be5ffe644f309e655052d9b17e
7
+ data.tar.gz: 0f1b936770d842197941a36b6aa658d248e40785e6c8b595b8e13027e2f0458da753ce8c0d653f7bf5a675b0443d5b4e36df767d0b526295dfa570f3b7cfd500
@@ -1,3 +1,22 @@
1
+ ## 0.20.0 - 2015-07-09
2
+
3
+ ### Features
4
+
5
+ Sensu services now optionally load connection and client configuration
6
+ from environment variables. This feature makes it easier to operate Sensu
7
+ in containerized environments, e.g. Docker. Sensu services read
8
+ configuration from the following variables: SENSU_TRANSPORT_NAME,
9
+ RABBITMQ_URL, REDIS_URL, SENSU_CLIENT_NAME, SENSU_CLIENT_ADDRESS,
10
+ SENSU_CLIENT_SUBSCRIPTIONS, SENSU_API_PORT
11
+
12
+ ### Other
13
+
14
+ The Sensu event action is now correctly set to "create" for metric check
15
+ events.
16
+
17
+ Updated MultiJson and Childprocess to the latest versions, which include
18
+ improvements and bug fixes.
19
+
1
20
  ## 0.19.2 - 2015-06-08
2
21
 
3
22
  ### Other
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.19.2"
4
+ VERSION = "0.20.0"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
@@ -1,14 +1,14 @@
1
1
  require "rubygems"
2
2
 
3
- gem "multi_json", "1.11.0"
3
+ gem "multi_json", "1.11.2"
4
4
 
5
5
  gem "sensu-em", "2.5.2"
6
6
  gem "sensu-logger", "1.0.0"
7
- gem "sensu-settings", "1.9.0"
7
+ gem "sensu-settings", "3.0.0"
8
8
  gem "sensu-extension", "1.1.2"
9
9
  gem "sensu-extensions", "1.2.0"
10
10
  gem "sensu-transport", "3.0.0"
11
- gem "sensu-spawn", "1.2.0"
11
+ gem "sensu-spawn", "1.3.0"
12
12
 
13
13
  require "time"
14
14
  require "uri"
@@ -316,13 +316,13 @@ module Sensu
316
316
  :id => random_uuid,
317
317
  :client => client,
318
318
  :check => check,
319
- :occurrences => 1
319
+ :occurrences => 1,
320
+ :action => (flapping ? :flapping : :create)
320
321
  }
321
322
  if check[:status] != 0 || flapping
322
323
  if stored_event && check[:status] == stored_event[:check][:status]
323
324
  event[:occurrences] = stored_event[:occurrences] + 1
324
325
  end
325
- event[:action] = flapping ? :flapping : :create
326
326
  @redis.hset("events:#{client[:name]}", check[:name], MultiJson.dump(event)) do
327
327
  callback.call(event)
328
328
  end
@@ -14,16 +14,16 @@ Gem::Specification.new do |s|
14
14
  s.has_rdoc = false
15
15
 
16
16
  s.add_dependency "json" if RUBY_VERSION < "1.9"
17
- s.add_dependency "multi_json", "1.11.0"
17
+ s.add_dependency "multi_json", "1.11.2"
18
18
  s.add_dependency "uuidtools", "2.1.5"
19
19
  s.add_dependency "eventmachine", "1.0.3"
20
20
  s.add_dependency "sensu-em", "2.5.2"
21
21
  s.add_dependency "sensu-logger", "1.0.0"
22
- s.add_dependency "sensu-settings", "1.9.0"
22
+ s.add_dependency "sensu-settings", "3.0.0"
23
23
  s.add_dependency "sensu-extension", "1.1.2"
24
24
  s.add_dependency "sensu-extensions", "1.2.0"
25
25
  s.add_dependency "sensu-transport", "3.0.0"
26
- s.add_dependency "sensu-spawn", "1.2.0"
26
+ s.add_dependency "sensu-spawn", "1.3.0"
27
27
  s.add_dependency "em-redis-unified", "1.0.0"
28
28
  s.add_dependency "sinatra", "1.4.6"
29
29
  s.add_dependency "async_sinatra", "1.2.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.2
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-08 00:00:00.000000000 Z
12
+ date: 2015-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 1.11.0
20
+ version: 1.11.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 1.11.0
27
+ version: 1.11.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: uuidtools
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 1.9.0
90
+ version: 3.0.0
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 1.9.0
97
+ version: 3.0.0
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: sensu-extension
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -143,14 +143,14 @@ dependencies:
143
143
  requirements:
144
144
  - - '='
145
145
  - !ruby/object:Gem::Version
146
- version: 1.2.0
146
+ version: 1.3.0
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - '='
152
152
  - !ruby/object:Gem::Version
153
- version: 1.2.0
153
+ version: 1.3.0
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: em-redis-unified
156
156
  requirement: !ruby/object:Gem::Requirement