Database Reference
In-Depth Information
A command-line interface
CloudWatch also provides a command-line interface to retrieve metrics about DynamoDB
tables and its operations. To use it, you need to first install the command-line tool on your
machine, as described in the CloudWatch developer guide at http://docs.aws.amazon.com/
AmazonCloudWatch/latest/cli/SetupCLI.html .
Like the CloudWatch API, we need to provide correct information to the command-line
tool to get more information. We need to provide the metrics name and the dimension asso-
ciated with it, as shown in the following command:
cmd>mon-get-stats ThrottledRequests --aws-credential-file
./<AWS_CREDS_FILE_PATH>.template --namespace "AWS/DynamoDB"
--statistics "Sum" --start-time 2014-04-14T00:00:00Z
--end-time 2014-05-16T00:00:00Z --period 500 --dimensions
"Operation=Scan"
Tip
Many times it happens that the senior management of your organization wants to have a
look at the application's performance. So, the only way to show them the reports is to give
them access to the AWS management console, which is a quite a risky thing to do, consid-
ering their non-technical background. Therefore, in order to solve this problem, you can
create your own monitoring portal where you can use CloudWatch APIs or CI to get the
data on the fly without sharing AWS credentials with any non-technical person and still
display the results.
Search WWH ::




Custom Search