Database Reference
In-Depth Information
CloudWatch API
CloudWatch provides us with a query API in order to get DynamoDB metrics programmat-
ically. For this, you need to provide valid data in a query format and simply hit the request
with proper credentials. A simple query normally looks for information such as the table
name, operation ( getItem , putItem , and so on), time frame (start time and end time),
and so on. A typical query request will look as follows:
http://monitoring.amazonaws.com/
?SignatureVersion=2
&Action=ReturnedItemCount
&Version=2010-08-01
&StartTime=2014-04-14T00:00:00
&EndTime=2014-05-16T00:00:00
&Period=500
&Statistics.member.1=Sum
&Dimensions.member.1=Operation=Scan,TableName=Book
&Namespace=AWS/DynamoDB
&MetricName=ReturnedItemCount
&Timestamp=2014-04-28T14%3A48%3A11.876Z
&AWSAccessKeyId=<Access Key>
&Signature=<Signature>
Depending on the need, you can select the required metrics and appropriate operations.
There is a list of DynamoDB metrics and dimensions for those metrics; go through ht-
tp://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/dynamo-metric-
scollected.html to get more details on this.
Search WWH ::




Custom Search