Monitor Amazon SNS

Find the topic whose notifications fail or get lost. The SNS view draws notifications as streams from their outcome to their topic and lists the topics that need attention.

The SNS view shows every Amazon SNS topic that sends metrics to Dash0 or that the AWS integration discovers. It sorts the notifications of all topics by what happened to them, and draws them as streams from that outcome to the topic. To open it, go to Infrastructure > AWS > SNS.

SNS map with streams from the outcomes Lost, Moved to DLQ, Delivered, and Filtered out through regions to topics, and the panel of the topic demo-billing open with the status Critical and the topic's notification flow

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/SNS metrics: The view reads CloudWatch metrics of the AWS/SNS 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
NumberOfMessagesPublishedPublished
NumberOfNotificationsDeliveredDelivered, the failure rate, and the status
NumberOfNotificationsFailedFailed, the failure rate, and the status
NumberOfNotificationsRedrivenToDlqMoved to DLQ
NumberOfNotificationsFailedToRedriveToDlqLost and the status
NumberOfNotificationsFilteredOut, NumberOfNotificationsFilteredOut-NoMessageAttributes, NumberOfNotificationsFilteredOut-InvalidMessageBodyFiltered out, as the sum of the three
NumberOfNotificationsFilteredOut-MessageAttributes, NumberOfNotificationsFilteredOut-MessageBodyThe reasons that the topic panel lists under Filtered out

SNS spreads filtered-out notifications over several metrics. NumberOfNotificationsFilteredOut counts the notifications that a filter policy rejected because of their attributes or their body. Notifications without attributes and notifications with an invalid body are in two more metrics. Dash0 adds the three, so Filtered out counts every notification that a filter policy dropped. Select all three in the integration's Metrics tab. Without the two extra metrics, Filtered out reads too low.

Collect the delivered and failed metrics together

The failure rate divides the failed notifications by the delivered plus the failed notifications. Dash0 counts a missing metric as 0, so a topic that reports failed but no delivered notifications reads as 100% failed.

A topic appears when it has AWS/SNS metric data in the selected time range, or when the AWS integration discovers it. Dash0 identifies a topic by its name, region, and account, so the same name in two regions is two topics.

Fleet Numbers

The cards on top are totals over the selected time range, for all topics that match the filter:

  • Published: Messages that publishers sent to the topics.
  • Failure rate: Failed notifications divided by the delivered plus the failed notifications. The text next to it gives both numbers, for example 15.2K of 250K failed. The rate turns red at 5% or more.
  • Notifications: Delivered, failed, and filtered-out notifications together.
  • Lost: Failed notifications that SNS could not move to a dead-letter queue. Any number above 0 is red.
Published and Notifications count different things

SNS counts a message once when a publisher sends it, and once per subscription after that. A message to a topic with three subscriptions is one published message and three notifications. In the screenshot, 83.2K published messages became 270K notifications.

Read the Map

Streams run from an outcome on the left, through a region, to a topic on the right. The Region column appears only when the topics are in more than one region. Every notification has one of four outcomes:

OutcomeMeaning
LostThe delivery failed and no dead-letter queue took the notification. The subscription has none, or the move to it failed too.
Moved to DLQThe delivery failed after all retries, and SNS moved the notification to the subscription's dead-letter queue. You can recover it from there.
DeliveredThe subscriber received the notification.
Filtered outA subscription filter policy dropped the notification. This is intended and never counts as a failure.

On the map, Lost counts every failed notification that did not reach a dead-letter queue, while the Lost card, the table, the topic panel, and the status count only the notifications whose move to a dead-letter queue failed. In the screenshot, the map counts 812 lost notifications for demo-billing, and the topic's panel counts 409.

  • Stream width: A stream's width is proportional to its number of notifications. Dots move along each stream, and a larger stream has more of them.
  • Colors: Lost is red and Moved to DLQ is yellow. Delivered and Filtered out are gray.
  • Numbers on a node: Every number on the map counts notifications. Published messages are not on the map. An outcome shows its count and its share of all notifications on the map, for example 7.33K · 2.7%. A region shows its count and its number of topics, for example 66.5K · 3 topics. A topic shows its count and its account ID. A topic that needs attention also shows its failure rate.
  • Grouped topics: The five topics that most need attention get their own node. The others fold into more need attention, and all healthy topics fold into healthy topics. Select Show to open a group. An open group lists up to 30 topics that need attention, or the 10 healthy topics with the most notifications. To see every topic, switch to Table.
  • Topics off the map: A topic without notifications in the time range is not on the map. The footer counts the idle topics and the topics that send no SNS metrics.

Hover over an outcome to read its definition. Hover over any node or stream to see its notifications and to highlight its flow. While a flow is highlighted, the rest of the map dims, and a node that is only partly in the flow shows its part, for example 24.4K of 234K.

  • Outcome or region: Select one to focus the map on it. The map then draws the five worst topics of that outcome or region. Select it again to clear the focus.
  • Stream: Select a stream to keep it highlighted.
  • Topic: Select a topic to open its panel. The topic's flow stays highlighted.

Press Esc to show everything again. These selections change neither the filters nor the table.

Topic Status

Dash0 gives each topic one of five statuses:

StatusRule
CriticalA failed notification could not move to the dead-letter queue, or 5% or more of deliveries failed
AttentionAt least one delivery failed, and fewer than 5% of deliveries failed
HealthyMessages were published, delivered, or filtered out, and no delivery failed
IdleMetrics arrive, but nothing was published, delivered, or filtered out
No dataThe AWS integration knows the topic, but no AWS/SNS metrics arrive for it

The share of failed deliveries is the topic's failure rate. Exactly 5% is Critical. One notification that could not move to the dead-letter queue makes a topic Critical at any failure rate. Filtered-out notifications never count as failures.

A failed notification from a subscription without a dead-letter queue is Lost on the map, but it makes the topic Critical only through the 5% rule.

The status reads the whole selected time range, and so do the fleet numbers, the map, and the table. To show only topics with certain statuses, filter on aws.sns.topic.status.

AWS publishes no throttle metric for SNS, so the status does not cover throttling.

Needs Attention

Needs attention sits next to the map and lists every topic with the status Critical or Attention. Critical topics come first. Within a status, the topic with the most failed deliveries comes first, then the topic with the most published messages.

Each entry gives the topic's region, its account, and the reason. A topic with notifications that could not move to the dead-letter queue reads, for example, 812 notifications lost. That number is the map's Lost count for the topic. Every other topic gives its failure rate, for example 1.25% of deliveries failed.

Hover over an entry to highlight the topic on the map. Select an entry to pick the topic on the map. If the topic was part of a group, it gets its own node. Selecting an entry does not open the topic's panel. If no topic has one of the two statuses, the list reads "Nothing needs attention".

Table View

The table lists every topic, the most severe status first. All columns sort. The table view has no Needs attention list.

ColumnShows
StatusThe topic's status
TopicThe topic name
RegionThe AWS region
AccountThe AWS account ID
PublishedPublished messages
DeliveredDelivered notifications
FailedFailed notifications
Failure rateFailed notifications divided by the delivered plus the failed notifications
LostFailed notifications that SNS could not move to a dead-letter queue

A topic without metrics shows a dash in the last five columns. Hover over the info icon in the Status header to read the status rules. Select a row to open the topic's panel.

Topic Panel

Select a topic on the map or in the table to open its panel. The Overview tab shows:

  • Summary: The account and region, and the topic's health. Failed deliveries gives the failed and the attempted deliveries, for example 8,141 of 32,567. Failure rate is their ratio. Lost appears only when it is above 0. Open in AWS console opens the topic in AWS.
  • Where this topic's notifications go: The topic's notifications in four stages, with a share next to each value. Published holds the published messages. Subscription filter splits the notifications into Matched and Filtered out. Delivery splits the matched notifications into Delivered and Failed. On failure splits the failed notifications into Moved to DLQ and Lost. Hover over Filtered out to see the count per filter reason.
  • Charts: Failure rate with the Critical threshold line at 5%, Notifications by outcome, Published, and Failed notifications: DLQ outcome. View in Metrics opens a chart's query in the query builder.

Two things in the flow can look wrong and are not. Matched can be larger than Published, because one published message becomes one notification per subscription. In the screenshot, 10.9K messages became 32.6K matched notifications. Moved to DLQ and Lost can add up to less than Failed, because a failed notification from a subscription without a dead-letter queue is in neither. In the screenshot they add up to 95% of the failed notifications.

The Attributes tab lists the topic's resource attributes, with a search box. To let Agent0 investigate the topic, select Ask Agent0. The URL keeps the open topic and tab, so you can share a link to the panel.

Troubleshooting

  • "Connect your AWS account" although an account is connected: Dash0 found no SNS topic and no AWS/SNS metrics in the selected time range. Open the AWS integration and check that the AWS/SNS namespace is turned on in its Metrics tab.
  • A warning replaces the fleet numbers: The integration discovers topics, but none of them sends metrics. The warning reads, for example, "The AWS integration knows 3 SNS topics, but no AWS/SNS metrics arrive for them." Every topic is No data, and the map reads "No SNS metrics arrive for these topics, so there are no flows to map." Follow the link Select the SNS metrics on the integration's Metrics tab.
  • A topic is No data: The integration discovers the topic, but no AWS/SNS metrics arrive for it. The table shows a dash for its values, the map leaves it out, and its panel reads "No AWS/SNS metrics arrive for this topic." The panel has the same link to the Metrics tab.
  • "No notifications in this time range. Pick a longer time range to see where messages go.": Metrics arrive, but no topic that matches the filter had a notification. Pick a longer time range.
  • A tag filter does not find a topic: AWS tags reach Dash0 only on the topics that the AWS integration discovers, never on the metrics. A topic that Dash0 knows only from its metrics, for example through a Metric Stream, has no tags to match.
  • "SNS topic not found": A link opened the panel of a topic that sends no data in the selected time range, or that no longer exists. Pick a longer time range.
  • "No access to SNS metrics": You need Read access to the dataset. Ask an Admin of your organization.

Further Reading

Last updated: