Amazon Relational Database Service
User Guide (API Version 2013-09-09)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Viewing DB Instance Metrics

Amazon RDS and CloudWatch are integrated so you can gather and monitor a variety of metrics. You can view CloudWatch metrics using the RDS console, CLI, or API.

In the following example, you use CloudWatch to gather storage space statistics for an Amazon RDS DB instance for the past hour.

AWS Management Console

To view usage and performance statistics for a DB instance

  1. Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.

  2. In the navigation pane, click DB Instances.

  3. Select the check box for the DB instance you want to monitor.

  4. Click Show Monitoring at the top of the window.

    Graphs showing the metrics for the selected DB instance display in this tab.

    Console Tags edit db

    Tip

    You can use the Time Range drop-down list box to select the time range of the metrics represented by the graphs.

    You can click on any of the graphs to bring up a more detailed view of the graph that allows you to apply additional metric-specific filters to the metric data.

CLI

Note

The following CLI example requires the CloudWatch command line tools. For more information on CloudWatch and to download the developer tools, go to the Amazon CloudWatch product page. Note that the StartTime and EndTime values supplied in this example are for illustrative purposes. You must substitute appropriate start and end time values for your DB instance.

For a complete list of Amazon RDS metrics, go to Amazon RDS Dimensions and Metrics in the Amazon CloudWatch Developer Guide.

To view usage and performance statistics for a DB instance

  • Use the CloudWatch command mon-get-stats with the following parameters:

    						PROMPT>mon-get-stats FreeStorageSpace --dimensions="DBInstanceIdentifier=mydbinstance" --statistics= Average 
    						--namespace="AWS/RDS" --start-time 2009-10-16T00:00:00 --end-time 2009-10-16T00:02:00
    					

API

Note that the StartTime and EndTime values supplied in this example are for illustrative purposes. You must substitute appropriate start and end time values for your DB instance.

To view usage and performance statistics for a DB instance

  • Call the CloudWatch API GetMetricStatistics with the following parameters:

    • Statistics.member.1 = Average

    • Namespace = AWS/RDS

    • StartTime = 2009-10-16T00:00:00

    • EndTime = 2009-10-16T00:02:00

    • Period = 60

    • MeasureName = FreeStorageSpace

    Example

    http://monitoring.amazonaws.com/
    	?SignatureVersion=2
    	&Action=GetMetricStatistics
    	&Version=2009-05-15
    	&StartTime=2009-10-16T00:00:00
    	&EndTime=2009-10-16T00:02:00
    	&Period=60
    	&Statistics.member.1=Average
    	&Dimensions.member.1="DBInstanceIdentifier=mydbinstance"
    	&Namespace=AWS/RDS
    	&MeasureName=FreeStorageSpace						
    	&Timestamp=2009-10-15T17%3A48%3A21.746Z
    	&AWSAccessKeyId=<AWS Access Key ID>
    	&Signature=<Signature>