Amazon Simple Notification Service (Amazon SNS) is a web service that coordinates and manages the delivery or sending of messages to subscribing endpoints or clients.
Resource Information:
- Type of Resource: Generic monitorable resource
- Discovery type: AWS SDK discovery type
- Discovery profile selection: Resource can be discovered by “SNS” in the profiler
- ResourceTag: SNS
- Resource Unique Identification: topicArn (topic.topicArn())
- Dependencies: SNS Topic may have subscriptions and integrate with various AWS services for notifications
In Amazon SNS, there are two types of clients:
- Publishers, also called producers, communicate asynchronously with subscribers by producing and sending a message to a topic, which is a logical access point and communication channel.
- Subscribers, also called consumers, consume or receive the message or notification over one of the supported protocols when they are subscribed to the topic. Subscribers include web servers, email addresses, Amazon SQS queues, AWS Lambda functions. Supported protocols include Amazon SQS, HTTP/S, email, SMS, Lambda.
Use the AWS public cloud integration to discover and collect metrics against the AWS service.
External reference
Setup
To set up the AWS integration and discover the AWS service, go to AWS Integration Discovery Profile and select SNS.
Event support
CloudTrail event support
- Supported (CreateTopic, DeleteTopic)
- Configurable in OpsRamp AWS Integration Discovery Profile.
CloudWatch alarm support
- Supported
- Configurable in OpsRamp AWS Integration Discovery Profile.
Supported metrics
| OpsRamp Metric | AWS Metric | Metric Display Name | Unit | Aggregation Type | Description |
|---|---|---|---|---|---|
| aws_sns_NumberOfMessagesPublished | NumberOfMessagesPublished | Number Of Messages Published | Count | Sum | The number of messages published to your Amazon SNS topics |
| aws_sns_NumberOfNotificationsDelivered | NumberOfNotificationsDelivered | Number Of Notifications Delivered | Count | Sum | The number of messages successfully delivered from your Amazon SNS topics to subscribing endpoints |
| aws_sns_NumberOfNotificationsFailed | NumberOfNotificationsFailed | Number Of Notifications Failed | Count | Sum | The number of messages that Amazon SNS failed to deliver |
| aws_sns_NumberOfNotificationsFilteredOut | NumberOfNotificationsFilteredOut | Number Of Notifications Filtered Out | Count | Sum | The number of messages rejected by subscription filter policies |
| aws_sns_NumberOfNotificationsFilteredOutMessageAttributes | NumberOfNotificationsFilteredOut-MessageAttributes | Number Of Notifications Filtered Out-Message Attributes | Count | Sum | The number of messages rejected by subscription filter policies for attribute-based filtering |
| aws_sns_NumberOfNotificationsFilteredOutMessageBody | NumberOfNotificationsFilteredOut-MessageBody | Number Of Notifications Filtered Out-Message Body | Count | Sum | The number of messages rejected by subscription filter policies for payload-based filtering |
| aws_sns_NumberOfNotificationsFilteredOutInvalidAttributes | NumberOfNotificationsFilteredOut-InvalidAttributes | Number Of Notifications Filtered Out-Invalid Attributes | Count | Sum | The number of messages rejected because message attributes are invalid |
| aws_sns_NumberOfNotificationsFilteredOutNoMessageAttributes | NumberOfNotificationsFilteredOut-NoMessageAttributes | Number Of Notifications Filtered Out-No Message Attributes | Count | Sum | The number of messages rejected because the messages have no attributes |
| aws_sns_NumberOfNotificationsFilteredOutInvalidMessageBody | NumberOfNotificationsFilteredOut-InvalidMessageBody | Number Of Notifications Filtered Out-Invalid Message Body | Count | Sum | The number of messages rejected because the message body is invalid for filtering |
| aws_sns_NumberOfNotificationsRedrivenToDlq | NumberOfNotificationsRedrivenToDlq | Number Of Notifications Redriven To Dlq | Count | Sum | The number of messages moved to a dead-letter queue |
| aws_sns_NumberOfNotificationsFailedToRedriveToDlq | NumberOfNotificationsFailedToRedriveToDlq | Number Of Notifications Failed To Redrive To Dlq | Count | Sum | The number of messages that could not be moved to a dead-letter queue |
| aws_sns_PublishSize | PublishSize | Publish Size | Bytes | Average | The size of messages published |