- Newest
- Most votes
- Most comments
Hello Ritesh, To set up a monthly spending limit alarm for SMS messages in Amazon SNS, you can utilize the SMSMonthToDateSpentUSD metric. Here's how to do it:
- Open the CloudWatch console in AWS.
- Navigate to "Alarms" and click "Create alarm".
- Select "SNS" under AWS namespaces, then choose "Topic Metrics".
- Find and select the SMSMonthToDateSpentUSD metric.
- When configuring the alarm:
- Set the statistic to Sum
- Choose an appropriate period (e.g., 1 hour)
- Define your threshold based on your monthly budget
- Set up notifications for when the alarm state changes to "In alarm".
- Name your alarm descriptively and create it.
This setup will alert you when your SMS spending approaches or exceeds your defined limit. For more detailed information, please refer to the AWS documentation: https://docs.aws.amazon.com/sns/latest/dg/sns-monitoring-using-cloudwatch.html By using the Sum statistic, you'll get an accurate representation of your total monthly SMS spend, allowing for better cost management and budget control.
Hi Ritesh,
You can follow the steps mentioned in the document below to create a cloudwatch alarm for your use case.
[+] https://docs.aws.amazon.com/sns/latest/dg/sns-monitoring-using-cloudwatch.html#SNS_AlarmMetrics
** For step 3 in the above doc when you have to choose the metric. Follow the below steps
- choose Metrics -> Choose SNS-> choose Metrics with no dimensions -> Choose the SMSMonthToDateSpentUSD metric.
- Then for the Threshold type, you can choose -> static -> Greater/Equal -> 100 ( threshold value)
For more information, please refer to link below.
[+] https://repost.aws/knowledge-center/sns-sms-spending-limit-alarm
Relevant content
- asked 8 months ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 13 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago