Configure SQS Dead letter Queue to raise a cloud watch alarm on receiving a message
问题 I was working with Dead letter Queue in Amazon SQS. I want that whenever a new message is received by the queue it should raise a CloudWatch alarm. The problem is I configured an alarm on the metric: number_of_messages_sent of the queue but this metric don't work as expected in case of Dead letter Queues as mentioned in the Amazon SQS Dead-Letter Queues - Amazon Simple Queue Service documentation. Now some suggestions on this were use number_of_messages_visible but I am not sure how to