fluent-plugin-cloudwatch 1.2.0 → 1.2.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.
- data/README.md +27 -0
- data/fluent-plugin-cloudwatch.gemspec +1 -1
- data/lib/fluent/plugin/in_cloudwatch.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -135,6 +135,33 @@ get metrics from cloudwatch.
|
|
135
135
|
|
136
136
|
```
|
137
137
|
|
138
|
+
### GET DynamoDB Metirc
|
139
|
+
|
140
|
+
```config
|
141
|
+
type cloudwatch
|
142
|
+
tag cloudwatch
|
143
|
+
aws_key_id YOUR_AWS_KEY_ID
|
144
|
+
aws_sec_key YOUR_AWS_SECRET/KE
|
145
|
+
cw_endpoint monitoring.ap-northeast-1.amazonaws.com
|
146
|
+
|
147
|
+
namespace AWS/DynamoDB
|
148
|
+
metric_name ConsumedReadCapacityUnits,ConsumedWriteCapacityUnits
|
149
|
+
dimensions_name TableName
|
150
|
+
dimensions_value ppc-production-visit
|
151
|
+
statistics Sum
|
152
|
+
interval 300
|
153
|
+
period 300
|
154
|
+
```
|
155
|
+
|
156
|
+
#### output data format
|
157
|
+
|
158
|
+
```
|
159
|
+
|
160
|
+
2013-04-11 15:13:00 +0900 cloudwatch {"ConsumedReadCapacityUnits":8271.5}
|
161
|
+
2013-04-11 15:13:00 +0900 cloudwatch {"ConsumedWriteCapacityUnits":2765.5}
|
162
|
+
|
163
|
+
```
|
164
|
+
|
138
165
|
## Contributing
|
139
166
|
|
140
167
|
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.1"
|
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.}
|
@@ -58,7 +58,7 @@ class Fluent::CloudwatchInput < Fluent::Input
|
|
58
58
|
:name => @dimensions_name,
|
59
59
|
:value => @dimensions_value
|
60
60
|
}],
|
61
|
-
:start_time => (Time.now -
|
61
|
+
:start_time => (Time.now - @period*2).iso8601,
|
62
62
|
:end_time => Time.now.iso8601,
|
63
63
|
:period => @period
|
64
64
|
})
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yusuke Nomura
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-04-
|
19
|
+
date: 2013-04-11 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: fluentd
|