logstash-output-cloudwatch 3.0.2 → 3.0.3
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/CHANGELOG.md +3 -0
- data/lib/logstash/outputs/cloudwatch.rb +5 -5
- data/logstash-output-cloudwatch.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238bdf434ae08b2eb5090a823ce3103cf916ea75
|
4
|
+
data.tar.gz: ae4ee47f2363905090a3a7ced0d85d2d55c41371
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2462076296356db64d9ac75251166ca47b24ccdb95ff720d08620583ca1e76632b386529e553854a405777743573334d69e13f94fc7929b73c25965b7219cea0
|
7
|
+
data.tar.gz: 8e3fdc2cedd7563be1a2d7c15245ec9e72eefb3422f567f9d777a1573d50f312e0c5edae3d84e6a40b70027f3e3e483dcc14cb14e6d4f4d7d95b26e023dec7a9
|
data/CHANGELOG.md
CHANGED
@@ -165,7 +165,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
165
165
|
@event_queue = SizedQueue.new(@queue_size)
|
166
166
|
@scheduler = Rufus::Scheduler.new
|
167
167
|
@job = @scheduler.every @timeframe do
|
168
|
-
@logger.
|
168
|
+
@logger.debug("Scheduler Activated")
|
169
169
|
publish(aggregate({}))
|
170
170
|
end
|
171
171
|
end # def register
|
@@ -188,14 +188,14 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
188
188
|
@logger.warn("Posted to AWS CloudWatch ahead of schedule. If you see this often, consider increasing the cloudwatch queue_size option.")
|
189
189
|
end
|
190
190
|
|
191
|
-
@logger.
|
191
|
+
@logger.debug("Queueing event", :event => event)
|
192
192
|
@event_queue << event
|
193
193
|
end # def receive
|
194
194
|
|
195
195
|
private
|
196
196
|
def publish(aggregates)
|
197
197
|
aggregates.each do |namespace, data|
|
198
|
-
@logger.
|
198
|
+
@logger.debug("Namespace, data: ", :namespace => namespace, :data => data)
|
199
199
|
metric_data = []
|
200
200
|
data.each do |aggregate_key, stats|
|
201
201
|
new_data = {
|
@@ -227,7 +227,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
227
227
|
:namespace => namespace,
|
228
228
|
:metric_data => batch
|
229
229
|
)
|
230
|
-
@logger.
|
230
|
+
@logger.debug("Sent data to AWS CloudWatch OK", :namespace => namespace, :metric_data => batch)
|
231
231
|
rescue Exception => e
|
232
232
|
@logger.warn("Failed to send to AWS CloudWatch", :exception => e, :namespace => namespace, :metric_data => batch)
|
233
233
|
break
|
@@ -239,7 +239,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
239
239
|
|
240
240
|
private
|
241
241
|
def aggregate(aggregates)
|
242
|
-
@logger.
|
242
|
+
@logger.debug("QUEUE SIZE ", :queuesize => @event_queue.size)
|
243
243
|
while !@event_queue.empty? do
|
244
244
|
begin
|
245
245
|
count(aggregates, @event_queue.pop(true))
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-output-cloudwatch'
|
4
|
-
s.version = '3.0.
|
4
|
+
s.version = '3.0.3'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "This output lets you aggregate and send metric data to AWS CloudWatch"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.8
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: This output lets you aggregate and send metric data to AWS CloudWatch
|