Monitor Amazon SQS
The SQS view shows every Amazon SQS queue that sends metrics to Dash0. It draws each queue as a pipe along the four stages a message passes through, and the pipe narrows at the stage where messages get stuck. To open it, go to Infrastructure > AWS > SQS.
For the parts that all AWS views share, such as filters, the Map and Table toggle, and Needs attention, see About AWS Service Views.
Requirements
- AWS integration: An AWS account connected to Dash0. See Set Up AWS Integration.
AWS/SQSmetrics: The view reads CloudWatch metrics of theAWS/SQSnamespace. Turn the namespace on in the integration's Metrics tab, as described in Collect AWS CloudWatch Metrics. Metrics from a CloudWatch Metric Stream work too.
The view uses these metrics:
| CloudWatch metric | Used for |
|---|---|
NumberOfMessagesSent | Sent, the status, and the Processed stage |
NumberOfMessagesReceived | The status, the In flight stage, and Received, not deleted |
NumberOfMessagesDeleted | Processed and the status |
ApproximateAgeOfOldestMessage | Oldest message, the status, and the Waiting stage |
ApproximateNumberOfMessagesVisible | Backlog |
ApproximateNumberOfMessagesNotVisible | In flight |
ApproximateNumberOfMessagesDelayed | The Backlog chart in the queue panel |
SentMessageSize | Avg message size and Max message size in the queue panel |
The status compares deleted messages with sent and received messages. A queue that reports sent or received messages but no deleted messages counts every message as not deleted and reads as a bottleneck.
A queue appears once one of these metrics has data in the selected time range. Dash0 identifies a queue by its name, region, and account, so the same name in two regions is two queues.
Fleet Numbers
The cards on top are totals over the selected time range, for all queues that match the filter:
- Sent: Messages that producers added to the queues.
- Processed: Messages that consumers deleted.
- Received, not deleted: Received messages minus deleted messages. A high number usually points to consumers that fail halfway and receive the same messages again. Dash0 subtracts the totals of all queues, so one queue's surplus can hide another queue's shortfall. Check a queue's own value in its panel.
- Oldest message: The age of the oldest message in any queue.
- Backlog: The messages that wait for a consumer, summed over all queues.
Read the Map
Each row is one queue. Its pipe has four stages:
| Stage | Shows | Narrows when |
|---|---|---|
| Sent | Messages that producers add to the queue | Never |
| Waiting | Messages that wait for a consumer | The oldest message ages. At 5 minutes, consumers lag. |
| In flight | Messages that consumers received but have not deleted | Consumers fail and retry messages |
| Processed | Messages that consumers deleted | Consumers delete fewer messages than producers send |
The dots in a pipe show traffic. A busier queue draws more dots, and a queue without traffic draws none.
- Queue details: Under its name, a row shows the queue's region and account. A queue whose name ends in
.fifois labeled FIFO. A queue whose name containsdlq,deadletter, ordead-letteris labeled DLQ. Dash0 goes by the name and does not read the queue's redrive policy. - Numbers on the right: A queue that needs attention shows the age of its oldest message, for example Oldest 14.2 h. A second line such as −93.8/min shows how far deleted messages fall behind sent messages. It appears only for queues with more than 20 messages per minute.
- Grouped queues: The five queues that most need attention get their own row. The others fold into more need attention, and all healthy queues fold into healthy queues. Each group is drawn as one pipe that is as tight as its tightest queue. Select Show to open a group. An open group lists up to 30 queues that need attention, or the 10 busiest healthy queues. To see every queue, switch to Table.
- Idle queues: Queues without traffic are not on the map. The footer counts them.
Hover over a stage name to read its definition, or over a row to see the values of each stage. Select a queue to open its panel.
Queue Status
Dash0 gives each queue one of four statuses. The tightest stage sets the status, and the status names it, for example Bottleneck: Waiting.
| Status | Rule |
|---|---|
| Bottleneck | The oldest message is 5 minutes or older, or 30% or more of received or sent messages were not deleted |
| At risk | Halfway there: the oldest message is 2.5 minutes or older, or 15% or more were not deleted |
| Flowing | Messages moved, below those limits |
| Idle | Nothing was sent, received, or deleted, and no message is aging |
The status and the pipes read the last 15 minutes of the selected time range. The fleet numbers, the table, and the charts read the whole time range. A longer time range with the same end therefore changes those values, but not the status.
AWS publishes no throttle metric for SQS, so the status does not cover throttling.
Needs Attention
Needs attention lists every queue with the status Bottleneck or At risk. Bottlenecks come first. Within a status, the queue that is furthest past its limit comes first, then the busier queue.
Each entry gives the reason, for example Oldest 14.2 h · 93.8 msg/min behind. The age and the rate cover the whole time range. Select an entry to pick the queue on the map. If the queue was part of a group, it gets its own row.
Table View
The table lists every queue, the most severe status first. All columns sort.
| Column | Shows |
|---|---|
| Queue | The queue name, with a FIFO tag for FIFO queues |
| Status | The status and the stage that set it |
| Region | The AWS region |
| Sent/min | Sent messages per minute |
| Backlog | The latest number of waiting messages |
| Oldest message | The latest age of the oldest message |
| In flight | The latest number of messages received but not deleted |
| Processed/min | Deleted messages per minute |
A cell shows n/a when the queue sends no data for that value.
Queue Panel
Select a queue on the map or in the table to open its panel. The Overview tab shows:
- Summary: The account, region, and type (Standard or FIFO), and the average and maximum message size. Open in AWS console opens the queue in AWS.
- Health: The status, the backlog, the age of the oldest message, the messages in flight, and Not deleted, the share of received or sent messages that were not deleted. These values cover the last 15 minutes.
- The queue's pipe: A larger version of the pipe on the map, with the value of each stage.
- Charts: Age of oldest message, Sent vs. processed, Backlog (visible, in flight, and delayed messages), and Received, not deleted. View in Metrics opens a chart's query in the query builder.
The Attributes tab lists the queue's resource attributes. To let Agent0 investigate the queue, select Ask Agent0.
Troubleshooting
- "No SQS metrics in this time range": Dash0 has no
AWS/SQSmetrics for this dataset and time range. Check that an AWS account is connected and that theAWS/SQSnamespace is turned on in the integration's Metrics tab. Open the AWS integration takes you there. - A queue is missing: A queue appears only when it has metric data in the selected time range. Pick a longer time range, and check that the queue's region and tags pass the integration's scrape filters.
- "Sends no backlog or age metrics": The queue reports no
ApproximateNumberOfMessagesVisibleand noApproximateAgeOfOldestMessage. Its Waiting stage never narrows, and its status reads only the sent, received, and deleted rates. Select both metrics in the integration's Metrics tab. - The map is empty but the table lists queues: No queue had traffic in the last 15 minutes of the time range. Move the end of the time range to a period with traffic.
- "No access to SQS metrics": You need Read access to the dataset. Ask an Admin of your organization.
Further Reading
- About AWS Service ViewsThe layout, statuses, and filters that all AWS views share
- Collect AWS CloudWatch MetricsChoose the namespaces and metrics that Dash0 scrapes
- Filter AWS Metrics by Resource TagsLimit the scrape to tagged queues and selected regions
- Monitor Amazon SNSFollow notifications from a topic to their delivery
Last updated:
