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 +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/daemon.rb +3 -3
- data/lib/sensu/server/process.rb +2 -2
- data/sensu.gemspec +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4be5e23925dd65b4c9e71546578bdf0785f2832
|
4
|
+
data.tar.gz: a1b30fee39f43655d0a6e67a9c07d47604f4e091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b81537b1dfb582730bd5187a3d103a607b5b5b8690f51bb092fe75af7be3c3248f3358ba802f52d0944041d8bbb0eadd0554be5ffe644f309e655052d9b17e
|
7
|
+
data.tar.gz: 0f1b936770d842197941a36b6aa658d248e40785e6c8b595b8e13027e2f0458da753ce8c0d653f7bf5a675b0443d5b4e36df767d0b526295dfa570f3b7cfd500
|
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/daemon.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
require "rubygems"
|
2
2
|
|
3
|
-
gem "multi_json", "1.11.
|
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", "
|
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.
|
11
|
+
gem "sensu-spawn", "1.3.0"
|
12
12
|
|
13
13
|
require "time"
|
14
14
|
require "uri"
|
data/lib/sensu/server/process.rb
CHANGED
@@ -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
|
data/sensu.gemspec
CHANGED
@@ -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.
|
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", "
|
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.
|
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.
|
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-
|
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.
|
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.
|
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:
|
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:
|
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.
|
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.
|
153
|
+
version: 1.3.0
|
154
154
|
- !ruby/object:Gem::Dependency
|
155
155
|
name: em-redis-unified
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|