fluent-plugin-cloudwatch 1.2.2 → 1.2.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.
- data/README.md +32 -5
- data/fluent-plugin-cloudwatch.gemspec +1 -1
- data/lib/fluent/plugin/in_cloudwatch.rb +2 -2
- metadata +45 -62
data/README.md
CHANGED
@@ -7,8 +7,8 @@
|
|
7
7
|
this plugin is simple.
|
8
8
|
get metrics from cloudwatch.
|
9
9
|
|
10
|
-
1. get every
|
11
|
-
2.
|
10
|
+
1. get every 300 seconds from AWS CloudWatch API(sleep 1sec)
|
11
|
+
2. 300 seconds of data
|
12
12
|
|
13
13
|
## Configuration
|
14
14
|
|
@@ -25,8 +25,8 @@ get metrics from cloudwatch.
|
|
25
25
|
metric_name [metric name]
|
26
26
|
dimensions_name [dimensions_name]
|
27
27
|
dimensions_value [dimensions value]
|
28
|
-
period [period] (default:
|
29
|
-
interval [interval] (default:
|
28
|
+
period [period] (default: 300)
|
29
|
+
interval [interval] (default: 300)
|
30
30
|
</source>
|
31
31
|
|
32
32
|
```
|
@@ -147,7 +147,7 @@ get metrics from cloudwatch.
|
|
147
147
|
namespace AWS/DynamoDB
|
148
148
|
metric_name ConsumedReadCapacityUnits,ConsumedWriteCapacityUnits
|
149
149
|
dimensions_name TableName
|
150
|
-
dimensions_value
|
150
|
+
dimensions_value some_dd_tablename
|
151
151
|
statistics Sum
|
152
152
|
interval 300
|
153
153
|
period 300
|
@@ -162,6 +162,33 @@ get metrics from cloudwatch.
|
|
162
162
|
|
163
163
|
```
|
164
164
|
|
165
|
+
### GET Billing Metirc
|
166
|
+
|
167
|
+
Note: Billing requires the us-east-1 endpoint
|
168
|
+
```config
|
169
|
+
type cloudwatch
|
170
|
+
tag cloudwatch aws_key_id YOUR_AWS_KEY_ID
|
171
|
+
aws_sec_key YOUR_AWS_SECRET/KE
|
172
|
+
cw_endpoint monitoring.us-east-1.amazonaws.com
|
173
|
+
|
174
|
+
namespace AWS/Billing
|
175
|
+
metric_name EstimatedCharges
|
176
|
+
dimensions_name Currency
|
177
|
+
dimensions_value USD
|
178
|
+
statistics Average
|
179
|
+
interval 7200
|
180
|
+
period 21600
|
181
|
+
```
|
182
|
+
|
183
|
+
#### output data format
|
184
|
+
|
185
|
+
```
|
186
|
+
|
187
|
+
2013-06-10 02:03:00 +0900 cloudwatch {"EstimatedCharges_in_USD":"543.175"}
|
188
|
+
2013-06-10 04:03:00 +0900 cloudwatch {"EstimatedCharges_in_USD":"550.39"}
|
189
|
+
|
190
|
+
```
|
191
|
+
|
165
192
|
## Contributing
|
166
193
|
|
167
194
|
1. Fork it
|
@@ -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 = "1.2.
|
7
|
+
gem.version = "1.2.3"
|
8
8
|
gem.authors = ["Yusuke Nomura", "kenjiskywalker"]
|
9
9
|
gem.email = ["yunomu@gmail.com", "git@kenjiskywalker.org"]
|
10
10
|
gem.description = %q{Input plugin for AWS CloudWatch.}
|
@@ -11,8 +11,8 @@ class Fluent::CloudwatchInput < Fluent::Input
|
|
11
11
|
config_param :statistics, :string, :default => "Average"
|
12
12
|
config_param :dimensions_name, :string, :default => nil
|
13
13
|
config_param :dimensions_value, :string, :default => nil
|
14
|
-
config_param :period, :integer, :default =>
|
15
|
-
config_param :interval, :integer, :default =>
|
14
|
+
config_param :period, :integer, :default => 300
|
15
|
+
config_param :interval, :integer, :default => 300
|
16
16
|
|
17
17
|
|
18
18
|
def initialize
|
metadata
CHANGED
@@ -1,66 +1,57 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 2
|
9
|
-
- 2
|
10
|
-
version: 1.2.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Yusuke Nomura
|
14
9
|
- kenjiskywalker
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: fluentd
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
25
18
|
none: false
|
26
|
-
requirements:
|
19
|
+
requirements:
|
27
20
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 11
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 10
|
33
|
-
- 30
|
21
|
+
- !ruby/object:Gem::Version
|
34
22
|
version: 0.10.30
|
35
23
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: aws-sdk
|
39
24
|
prerelease: false
|
40
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
26
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 0.10.30
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: aws-sdk
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - '='
|
37
|
+
- !ruby/object:Gem::Version
|
50
38
|
version: 1.8.3
|
51
39
|
type: :runtime
|
52
|
-
|
40
|
+
prerelease: false
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - '='
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.8.3
|
53
47
|
description: Input plugin for AWS CloudWatch.
|
54
|
-
email:
|
48
|
+
email:
|
55
49
|
- yunomu@gmail.com
|
56
50
|
- git@kenjiskywalker.org
|
57
51
|
executables: []
|
58
|
-
|
59
52
|
extensions: []
|
60
|
-
|
61
53
|
extra_rdoc_files: []
|
62
|
-
|
63
|
-
files:
|
54
|
+
files:
|
64
55
|
- .gitignore
|
65
56
|
- Gemfile
|
66
57
|
- LICENSE
|
@@ -72,37 +63,29 @@ files:
|
|
72
63
|
- test/plugin/test_in_cloudwatch.rb
|
73
64
|
homepage: https://github.com/yunomu/fluent-plugin-cloudwatch
|
74
65
|
licenses: []
|
75
|
-
|
76
66
|
post_install_message:
|
77
67
|
rdoc_options: []
|
78
|
-
|
79
|
-
require_paths:
|
68
|
+
require_paths:
|
80
69
|
- lib
|
81
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
71
|
none: false
|
83
|
-
requirements:
|
84
|
-
- -
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
|
88
|
-
- 0
|
89
|
-
version: "0"
|
90
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
77
|
none: false
|
92
|
-
requirements:
|
93
|
-
- -
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
version: "0"
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
99
82
|
requirements: []
|
100
|
-
|
101
83
|
rubyforge_project:
|
102
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.23
|
103
85
|
signing_key:
|
104
86
|
specification_version: 3
|
105
87
|
summary: Input plugin for AWS CloudWatch.
|
106
|
-
test_files:
|
88
|
+
test_files:
|
107
89
|
- test/helper.rb
|
108
90
|
- test/plugin/test_in_cloudwatch.rb
|
91
|
+
has_rdoc:
|