README.md in fluent-plugin-cloudwatch-1.2.2 vs README.md in fluent-plugin-cloudwatch-1.2.3
- old
+ new
@@ -5,12 +5,12 @@
***AWS CloudWatch*** input plugin.
this plugin is simple.
get metrics from cloudwatch.
-1. get every 60 seconds from AWS CloudWatch API(sleep 1sec)
-2. 60 seconds of data
+1. get every 300 seconds from AWS CloudWatch API(sleep 1sec)
+2. 300 seconds of data
## Configuration
```config
<source>
@@ -23,12 +23,12 @@
namespace [namespace]
statistics [statistics] (default: Average)
metric_name [metric name]
dimensions_name [dimensions_name]
dimensions_value [dimensions value]
- period [period] (default: 60)
- interval [interval] (default: 60)
+ period [period] (default: 300)
+ interval [interval] (default: 300)
</source>
```
### GET RDS Metric
@@ -145,11 +145,11 @@
cw_endpoint monitoring.ap-northeast-1.amazonaws.com
namespace AWS/DynamoDB
metric_name ConsumedReadCapacityUnits,ConsumedWriteCapacityUnits
dimensions_name TableName
- dimensions_value ppc-production-visit
+ dimensions_value some_dd_tablename
statistics Sum
interval 300
period 300
```
@@ -157,9 +157,36 @@
```
2013-04-11 15:13:00 +0900 cloudwatch {"ConsumedReadCapacityUnits":8271.5}
2013-04-11 15:13:00 +0900 cloudwatch {"ConsumedWriteCapacityUnits":2765.5}
+
+```
+
+### GET Billing Metirc
+
+Note: Billing requires the us-east-1 endpoint
+```config
+ type cloudwatch
+ tag cloudwatch aws_key_id YOUR_AWS_KEY_ID
+ aws_sec_key YOUR_AWS_SECRET/KE
+ cw_endpoint monitoring.us-east-1.amazonaws.com
+
+ namespace AWS/Billing
+ metric_name EstimatedCharges
+ dimensions_name Currency
+ dimensions_value USD
+ statistics Average
+ interval 7200
+ period 21600
+```
+
+#### output data format
+
+```
+
+2013-06-10 02:03:00 +0900 cloudwatch {"EstimatedCharges_in_USD":"543.175"}
+2013-06-10 04:03:00 +0900 cloudwatch {"EstimatedCharges_in_USD":"550.39"}
```
## Contributing