Monitoring Amazon SQS using CloudWatch
Amazon SQS and Amazon CloudWatch are integrated so you can use CloudWatch to view and analyze metrics for your Amazon SQS queues. You can view and analyze your queues' metrics from the Amazon SQS console, the CloudWatch console, the command line, or programmatically.
CloudWatch metrics for your Amazon SQS queues are automatically collected and pushed to CloudWatch every five minutes. (Detailed monitoring, or one-minute metrics, is currently unavailable for Amazon SQS.) These metrics are gathered on all queues that meet the CloudWatch guidelines for being active. CloudWatch considers a queue to be active for up to six hours if it contains any messages or if any API action accesses it.
There is no charge for the Amazon SQS metrics reported in CloudWatch. They're provided as part of the Amazon SQS service.
CloudWatch metrics are supported for both standard and FIFO queues.
Common Monitoring Tasks
Use the following decision matrix to determine which set of instructions to follow to complete your desired task.
|Quickly display a default view of CloudWatch metrics over time for up to 10 queues at once.||Access Metrics Using the Amazon SQS Console|
Further customize the default views of CloudWatch metrics.
Set alarms when metrics meet or exceed specified conditions.
Create complex dashboards that display metrics for multiple Amazon SQS queues together.
|Access CloudWatch metrics from the command line or programmatically.|