bosh-monitor 1.2743.0 → 1.2744.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3d74bad04ccd85392b4ea8b8a957d176509fec6
|
4
|
+
data.tar.gz: d26c43893ce351737a668f4838ffa14199889508
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e781afcc0a7b9d45f59d5d5a4f3d72a5829d172bc88463224cc6c440b7781242fc4e6416521121fa8982b13c3b741220581929cc34776e31b3c15fa2440e29b6
|
7
|
+
data.tar.gz: 0360f71962a872a8d2596efe1a26a023917c986cb69f4918f5ed0b8d2c21f4bc62fe51a2593c8ba96e33f68f6c27ecfb66d0954f8d5df0f9dbcbef6ba2d1204d
|
@@ -48,16 +48,18 @@ module Bosh::Monitor
|
|
48
48
|
@processor.add_plugin(lookup_plugin(plugin["name"], plugin["options"]), plugin["events"])
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
EM.schedule do
|
52
|
+
Bhm.nats.subscribe("hm.agent.heartbeat.*") do |message, reply, subject|
|
53
|
+
process_event(:heartbeat, subject, message)
|
54
|
+
end
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
Bhm.nats.subscribe("hm.agent.alert.*") do |message, reply, subject|
|
57
|
+
process_event(:alert, subject, message)
|
58
|
+
end
|
58
59
|
|
59
|
-
|
60
|
-
|
60
|
+
Bhm.nats.subscribe("hm.agent.shutdown.*") do |message, reply, subject|
|
61
|
+
process_event(:shutdown, subject, message)
|
62
|
+
end
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
@@ -7,11 +7,14 @@ module Bosh::Monitor
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def subscribe
|
10
|
-
|
11
|
-
alert
|
10
|
+
EM.schedule do
|
11
|
+
@nats.subscribe('hm.director.alert') do |message, _, subject|
|
12
|
+
@logger.debug("RECEIVED: #{subject} #{message}")
|
13
|
+
alert = Yajl::Parser.parse(message)
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
+
if valid_payload?(alert)
|
16
|
+
@event_processor.process(:alert, alert)
|
17
|
+
end
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
data/lib/bosh/monitor/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bosh-monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2744.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- VMware
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|
@@ -138,7 +138,7 @@ dependencies:
|
|
138
138
|
version: 1.6.0
|
139
139
|
description: |-
|
140
140
|
BOSH Health Monitor
|
141
|
-
|
141
|
+
7460f0
|
142
142
|
email: support@cloudfoundry.com
|
143
143
|
executables:
|
144
144
|
- bosh-monitor-console
|