Amazon Relational Database Service
User Guide (API Version 2012-01-15)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

Viewing DB Instance Metrics

Amazon RDS and Amazon CloudWatch are integrated so you can gather a variety of metrics. You can monitor these metrics with Amazon CloudWatch.

[Note]Note

The following examples require the Amazon CloudWatch command line tools. For more information on Amazon CloudWatch and to download the developer tools, go to the Amazon CloudWatch product page.

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

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

[Note]Note

The StartTime and EndTime values supplied in the examples below are for illustrative purposes. You must substitute appropriate start and end time values for your DB Instance.

AWS Management Console

To gather disk storage 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. Click DB Instances in the Navigation list on the left side of the window.

    The available DB Instances appear in the My DB Instances list.

    [Note]Note

    You can use the text box to the right of the Viewing drop-down list box to further filter your results.

  3. Click on the DB Instance.

  4. Click on the Monitoring tab in the information panel at the bottom of the window.

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

    [Tip]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

To gather disk storage statistics for a DB Instance

  • Use the Amazon 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

To gather CPU utilization statistics for a DB Instance

  • Call the Amazon 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>