fluent-plugin-cloudwatch 2.0.0 → 2.0.1
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/fluent-plugin-cloudwatch.gemspec +1 -1
- data/lib/fluent/plugin/in_cloudwatch.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98b0e87a73f102d68f0987b91514ad3ef5f5d34e
|
|
4
|
+
data.tar.gz: b259121bdf5da5113b223d4f5d87ce909d130913
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ed1f124bf94ae7d737498a1395958f978ea6814a77223b23463631e34c2a4a95da5a8163947af08ec8bf4c54c42ce695bb03e26eab3b30f8a5c7d8bb59620dc9
|
|
7
|
+
data.tar.gz: f795231cf8657546aa68a77c990d7a21231bbdd4fc6440cdebe121cf1046b078193069cfc2984e0906783cd789a6708bc6d132155bcac3db3bfa4dd110e9a056
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "fluent-plugin-cloudwatch"
|
|
7
|
-
gem.version = "2.0.
|
|
7
|
+
gem.version = "2.0.1"
|
|
8
8
|
gem.authors = ["Yusuke Nomura", "kenjiskywalker", "FUJIWARA Shunichiro"]
|
|
9
9
|
gem.email = ["yunomu@gmail.com", "git@kenjiskywalker.org", "fujiwara.shunichiro@gmail.com"]
|
|
10
10
|
gem.description = %q{Input plugin for AWS CloudWatch.}
|
|
@@ -19,6 +19,7 @@ class Fluent::CloudwatchInput < Fluent::Input
|
|
|
19
19
|
config_param :aws_key_id, :string, :default => nil, :secret => true
|
|
20
20
|
config_param :aws_sec_key, :string, :default => nil, :secret => true
|
|
21
21
|
config_param :cw_endpoint, :string, :default => nil
|
|
22
|
+
config_param :region, :string, :default => nil
|
|
22
23
|
|
|
23
24
|
config_param :namespace, :string, :default => nil
|
|
24
25
|
config_param :metric_name, :string, :default => nil
|
|
@@ -65,6 +66,10 @@ class Fluent::CloudwatchInput < Fluent::Input
|
|
|
65
66
|
else
|
|
66
67
|
@cw_endpoint_uri = endpoint.to_s
|
|
67
68
|
end
|
|
69
|
+
|
|
70
|
+
if !@region
|
|
71
|
+
@region = @cw_endpoint.split('.')[1]
|
|
72
|
+
end
|
|
68
73
|
end
|
|
69
74
|
|
|
70
75
|
def start
|
|
@@ -115,6 +120,7 @@ class Fluent::CloudwatchInput < Fluent::Input
|
|
|
115
120
|
end
|
|
116
121
|
|
|
117
122
|
@cw = Aws::CloudWatch::Client.new(
|
|
123
|
+
:region => @region,
|
|
118
124
|
:access_key_id => @aws_key_id,
|
|
119
125
|
:secret_access_key => @aws_sec_key,
|
|
120
126
|
:endpoint => @cw_endpoint_uri,
|