Amazon Simple Notification Service Monitoring (Amazon SNS)


Amazon Simple Notification Service (SNS) - An Overview

Simple Notification Service (SNS) is a cloud messaging service from the host of Amazon web services. SNS is a flexible, fully managed pub/sub messaging and mobile notifications service for coordinating the delivery of messages to subscribing endpoints and clients. With SNS you can fan-out messages to a large number of subscribers, including distributed systems and services, and mobile devices.


Monitoring Amazon SNS - What we do

Applications Manager provides you with insight into the performance of your Amazon SNS service. Monitor region and topic-wise metrics like notification status (delivery and failure),SMS deliveries, messages throughput - sent and failed counts, subscription count and more.


Create a new Amazon monitor

Mode of Monitoring: CloudWatch & Amazon API using SDK. Prerequisites for setting up Amazon SNS monitoring: To create a new Amazon monitor, follow the steps given below:

  1. Click on New Monitor link.
  2. Select Amazon under Cloud Apps category.

  3. Specify the Display Name of the Amazon server

  4. Enter the Amazon Access Key Id of the AWS for accessing the AWS through the API. The access key has 20 alpha-numeric characters.

  5. Enter the Secret Access Key of the AWS. The secret key should be 40 alpha-numeric characters long.

  6. Choose the Account Type. The default Account Type when adding a new Amazon monitor is AWS Global. Choose AWS China as the Account Type to monitor services in the AWS China regions.

  7. Specify the Polling Interval in minutes. (Default polling interval is set to 60 minutes.)

  8. If you are adding a new monitor from an Admin Server, select a Managed Server.

  9. Choose the Monitor Group with which you want to associate the Amazon monitor to, from the combo box (optional). You can choose multiple groups to associate your monitor.

  10. Click Add Monitor(s). This discovers the Amazon server from the network and starts monitoring it.

Changing the Polling Interval for SNS Monitor:

The polling interval for the SNS monitor is set to 60 minutes by default. To change it:

  • Go to the Admin tab.
  • Click Performance Polling under Discovery and Data Collection.
  • Under Performance Data Collection, Click on the Optimize Data Collection tab.
  • Select Amazon from the Monitor Type drop-down menu.
  • Select SNS Service from the Metric Name drop-down menu.
  • Select how you wish to configure the mertics:
    • By Monitor Type - This will be the default polling status, for any new monitor added. All the monitors of this type, will have the default polling status, until any exclusive customization is done for the monitor. You can choose between three different polling settings: Never collect data, Collect data in every polling and Collect data at customized time interval. Changing the polling status of 'Monitor Type', will also change any configuration done for its 'Monitors'. You can use the options Collect data in every polling or Collect data at customized time interval to change the polling interval.
    • By Monitors - Use this option to change the polling status of any particular monitor(s).
  • Click Save.

Note
1. Before creating a new Amazon monitor, you have to configure proxy settings under 'Admin' tab.
2. Click here to know more about AWS credentials.
3. It is not advisable to change the polling interval to less than 60 minutes as it may increase the number of request to amazon services.

 

Use the AddMonitor API to add an Amazon SNS Monitor

Syntax of Rest API for adding the monitor:

http://[Host]:[Port]/AppManager/xml/AddMonitor?apikey=[APIKEY]&type=[TYPE]&accessKey=[ACCESSKEY]&SecretAccessKey=[SECRETACCESSKEY]&displayname=[DISPLAYNAME]&AccountType=[account type]

Request Parameters:

The parameters involved in the API request are described below. Also, refer the list of common Request Parameters.

FieldDescription
type The type of the monitor you want to add. Value should be Amazon.
accesskey The Amazon Access Key Id of the AWS for accessing the AWS.
secretaccesskey The Secret Access Key of the AWS. The secret key should be 40 alpha-numeric characters long.
displayname The display name of the Amazon server monitor.
AccountType The account type. Possible Values are:
  • AwsGlobal
  • AwsChina

Monitored Parameters

SNS USAGE

MetricDescription
Total Messages Published The total number of messages published throughout all the AWS supported regions.
Total Notifications Delivered The total number of messages delivered throughout all the AWS supported regions.
Total Notifications Failed The total number of messages failed throughout all the AWS supported regions.
Total Published Size (KB) The total size of messages published throughout all the AWS supported regions.
Notifications Delivered (%) The percentage of total delivered notifications.
Notifications Failed (%) The percentage of total failed notifications.
SMS Month-To-Date charges The total charges accrued since the start of the current calendar month for sending SMS messages in AWS supported regions. Unit - USD

MESSAGE THROUGHPUT

MetricDescription
Publish Size / Hour The published message size per hour in KB

NOTIFICATION DELIVERY RATE

MetricDescription
Notifications Delivered / Hour The number of notifications delivered per hour.

NOTIFICATION FAILURE RATE

MetricDescription
Notifications Failed / Hour The number of notifications failed per hour.

REGION-WISE METRICS

MetricDescription
Region The name of the AWS SNS supported region.
Topic Count The number of topics available in a region.
Message Published The number of message published in a region.
Notifications Delivered The number of notifications delivered in a region.
Notifications Failed The number of notifications failed in a region.
Published Size (KB) The total Published size in a region. (KB)
SMS Month-To-Date charge (USD) The total SMS spent charges in a region.

TOPIC-WISE METRICS

MetricDescription
Topic Name The user-specified name of a SNS topic.
Region The name of the AWS SNS supported region.
Messages Published The number of message published in a topic.
Notifications Delivered The number of notifications delivered in a topic.
Notifications Failed The number of notifications failed in a topic.
Published Size (KB) The total published size in a topic. (KB)
Subscription Count The total number of subscriptions in a topic.
We have restricted topic count to 200 per region