Monitor Amazon SQS

Find the queue where messages get stuck. The SQS view draws each queue as a pipe from sent to processed and lists the queues that need attention.

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.

SQS map with each queue as a pipe from Sent through Waiting and In flight to Processed, and seven queues listed under Needs attention

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/SQS metrics: The view reads CloudWatch metrics of the AWS/SQS namespace. 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 metricUsed for
NumberOfMessagesSentSent, the status, and the Processed stage
NumberOfMessagesReceivedThe status, the In flight stage, and Received, not deleted
NumberOfMessagesDeletedProcessed and the status
ApproximateAgeOfOldestMessageOldest message, the status, and the Waiting stage
ApproximateNumberOfMessagesVisibleBacklog
ApproximateNumberOfMessagesNotVisibleIn flight
ApproximateNumberOfMessagesDelayedThe Backlog chart in the queue panel
SentMessageSizeAvg message size and Max message size in the queue panel
Collect the sent, received, and deleted metrics together

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:

StageShowsNarrows when
SentMessages that producers add to the queueNever
WaitingMessages that wait for a consumerThe oldest message ages. At 5 minutes, consumers lag.
In flightMessages that consumers received but have not deletedConsumers fail and retry messages
ProcessedMessages that consumers deletedConsumers 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 .fifo is labeled FIFO. A queue whose name contains dlq, deadletter, or dead-letter is 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.

StatusRule
BottleneckThe oldest message is 5 minutes or older, or 30% or more of received or sent messages were not deleted
At riskHalfway there: the oldest message is 2.5 minutes or older, or 15% or more were not deleted
FlowingMessages moved, below those limits
IdleNothing 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.

ColumnShows
QueueThe queue name, with a FIFO tag for FIFO queues
StatusThe status and the stage that set it
RegionThe AWS region
Sent/minSent messages per minute
BacklogThe latest number of waiting messages
Oldest messageThe latest age of the oldest message
In flightThe latest number of messages received but not deleted
Processed/minDeleted 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/SQS metrics for this dataset and time range. Check that an AWS account is connected and that the AWS/SQS namespace 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 ApproximateNumberOfMessagesVisible and no ApproximateAgeOfOldestMessage. 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

Last updated: