| Did this page help you? Yes No Tell us about it... |
Amazon RDS and Amazon CloudWatch are integrated so you can gather a variety of metrics. You can monitor these metrics with Amazon CloudWatch.
![]() | 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 |
|---|---|
The |
To gather disk storage statistics for a DB Instance
Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/.
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 |
|---|---|
You can use the text box to the right of the Viewing drop-down list box to further filter your results. |
Click on the DB Instance.
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 |
|---|---|
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. |
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
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>