Monitor SQS queues with CloudWatch metrics and alarms
Michael Wittig – 17 Jan 2019 (updated 17 Aug 2021)
Many applications depend on an Amazon SQS message queue to exchange information. The message producers are decoupled from the message consumers. However, the producers rely on a consumer to eventually process the message. That’s why you need to add monitoring to be alerted if the message processing is not working or if messages are not processed fast enough. Learn how to monitor SQS in the following.
Each SQS queue sends metrics to CloudWatch that we can monitor with CloudWatch alarms. We recommend creating alarms for the following metrics:
ApproximateAgeOfOldestMessage: The approximate age in seconds of the oldest non-deleted message in the queue.
ApproximateNumberOfMessagesVisible: The number of messages available for retrieval from the queue.
Monitoring Setup Assistant
Monitor SQS and receive alerts in Slack or Microsoft Teams!
Take your AWS monitoring to a new level! Chatbot for AWS Monitoring: Configure monitoring, receive alerts, solve incidents.