amazon-web-servicesamazon-sqsamazon-cloudwatch

Monitor multiple SQS queues altogether or individually?


I'm working on a system that uses AWS SNS/SQS as its messaging platform, which has around 100 queues, each of them having its own DLQ.

e.g.:

I would like to receive a notification when any of the DLQs receives a message (ApproximateNumberOfMessagesVisible >= 1).

What is the recommended approach to monitor all these queues?


Solution

  • An alternative approach would be to schedule a Lambda function that gathers the individual metrics and creates a combined custom metric with a single Alarm.

    This would probably be cheaper than the individual metrics since the Alarms are 10c/month. The Lambda cost would be minimal, and possibly within your Free Tier usage.