Skip to content

AWS Simple Notification Service

The displayed Metrics of AWS Simple Notification Service include the number of messages successfully delivered from Amazon SNS topics to subscription endpoints, the number of messages failed to be delivered by Amazon SNS, the number of messages published to your Amazon SNS topics, the size of published messages, etc.

Configuration

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.

For self-deployment of Func, refer to Self-deploy Func

Install Script

Note: Please prepare an Amazon AK that meets the requirements in advance (for simplicity, you can directly grant global read-only permission ReadOnlyAccess)

Activate Script for Automata Version

  1. Log in to the TrueWatch console
  2. Click the 【Integration】 menu, select 【Cloud Account Management】
  3. Click 【Add Cloud Account】, select 【AWS】, and fill in the required information on the interface. If the cloud account information has been configured before, ignore this step
  4. Click 【Test】, after the test is successful, click 【Save】. If the test fails, please check whether the relevant configuration information is correct and test again
  5. Click 【Cloud Account Management】, you can see the added cloud account in the list, click the corresponding cloud account to enter the details page
  6. Click the 【Integration】 button on the cloud account details page, find AWS Simple Notification Service under the Not Installed list, click the 【Install】 button, and the installation interface will pop up for installation.

Manual Activation Script

  1. Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, search for integration_aws_sns

  2. Click 【Install】, then enter the corresponding parameters: AWS AK ID, AK Secret, and account name.

  3. Click 【Deploy Startup Script】, the system will automatically create the Startup script set and automatically configure the corresponding startup script.

  4. After activation, you can see the corresponding automatic trigger configuration in 「Manage / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.

Verification

  1. In 「Manage / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to check for any anomalies
  2. In TrueWatch, check whether asset information exists in 「Infrastructure / Custom」
  3. In TrueWatch, check whether there is corresponding monitoring data in 「Metrics」

Metrics

After configuring Amazon CloudWatch, the default Measurement is as follows. More Metrics can be collected through configuration:

Amazon CloudWatch AWS Simple Notification Service Metrics Details

Metric Name Description Unit Valid Statistics
NumberOfNotificationsDelivered The number of messages successfully delivered from your Amazon SNS topics to subscription endpoints. For successful delivery, the subscription of the endpoint must accept the message. A subscription can accept a message in the following two cases: a.) It lacks a filter policy or b.) The attributes in its filter policy match the attributes assigned to the message. If the subscription rejects the message, the delivery attempt will not be counted in this metric. Count Sum, Average
NumberOfNotificationsFailed The number of messages failed to be delivered by Amazon SNS. For Amazon SQS, email, SMS, or mobile push endpoints, this metric increments by 1 when Amazon SNS stops trying to deliver the message. For HTTP or HTTPS endpoints, this metric includes each failed delivery attempt (including retries after the initial attempt). For all other endpoints, the count increases by 1 when the message delivery fails (regardless of the number of attempts). This metric does not include messages rejected by the subscription filter policy. You can control the number of retries for HTTP endpoints. For more information, see Amazon SNS Message Delivery Retries. Count Sum, Average
NumberOfMessagesPublished The number of messages published to your Amazon SNS topics. Count Sum
PublishSize The size of published messages. Bytes Minimum, Maximum, Average, and Count