Scenario: Monitor your estimated charges using CloudWatch - Amazon CloudWatch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Scenario: Monitor your estimated charges using CloudWatch

In this scenario, you create an Amazon CloudWatch alarm to monitor your estimated charges. When you enable the monitoring of estimated charges for your Amazon account, the estimated charges are calculated and sent several times daily to CloudWatch as metric data.

Billing metric data is stored in the US East (N. Virginia) Region and reflects worldwide charges. This data includes the estimated charges for every service in Amazon that you use, as well as the estimated overall total of your Amazon charges.

You can choose to receive alerts by email when charges have exceeded a certain threshold. These alerts are triggered by CloudWatch and messages are sent using Amazon Simple Notification Service (Amazon SNS).

Note

For information about analyzing CloudWatch charges that you have already been billed for, see CloudWatch billing and cost.

Step 1: Enable billing alerts

Before you can create an alarm for your estimated charges, you must enable billing alerts, so that you can monitor your estimated Amazon charges and create an alarm using billing metric data. After you enable billing alerts, you cannot disable data collection, but you can delete any billing alarms that you created.

After you enable billing alerts for the first time, it takes about 15 minutes before you can view billing data and set billing alarms.

Requirements
  • You must be signed in using root user credentials or as a user who has been given permission to view billing information.

  • For consolidated billing accounts, billing data for each linked account can be found by logging in as the paying account. You can view billing data for total estimated charges and estimated charges by service for each linked account, in addition to the consolidated account.

  • In a consolidated billing account, member linked account metrics are captured only if the payer account enables the Receive Billing Alerts preference. If you change which account is your management/payer account, you must enable the billing alerts in the new management/payer account.

  • The account must not be part of the Amazon Partner Network (APN) because billing metrics are not published to CloudWatch for APN accounts. For more information, see Amazon Partner Network.

To enable the monitoring of estimated charges
  1. Open the Amazon Billing console at https://console.amazonaws.cn/billing/.

  2. In the navigation pane, choose Billing Preferences.

  3. By Alert preferences choose Edit.

  4. Choose Receive CloudWatch Billing Alerts.

  5. Choose Save preferences.

Step 2: Create a billing alarm

Important

Before you create a billing alarm, you must set your Region to US East (N. Virginia). Billing metric data is stored in this Region and represents worldwide charges. You also must enable billing alerts for your account or in the management/payer account (if you are using consolidated billing). For more information, see Step 1: Enable billing alerts.

In this procedure, you create an alarm that sends a notification when your estimated charges for Amazon exceed a defined threshold.

To create a billing alarm using the CloudWatch console
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. In the navigation pane, choose Alarms, and then choose All alarms.

  3. Choose Create alarm.

  4. Choose Select metric. In Browse, choose Billing, and then choose Total Estimated Charge.

    Note

    If you don't see the Billing/Total Estimated Charge metric, enable billing alerts, and change your Region to US East (N. Virginia). For more information, see Enabling billing alerts.

  5. Select the box for the EstimatedCharges metric, and then choose Select metric.

  6. For Statistic, choose Maximum.

  7. For Period, choose 6 hours.

  8. For Threshold type, choose Static.

  9. For Whenever EstimatedCharges is . . ., choose Greater.

  10. For than . . ., define the value that you want to cause your alarm to trigger. For example, 200 USD.

    The EstimatedCharges metric values are only in US dollars (USD), and the currency conversion is provided by Amazon Services LLC. For more information, see What is Amazon Billing?.

    Note

    After you define a threshold value, the preview graph displays your estimated charges for the current month.

  11. Choose Additional Configuration and do the following:

    • For Datapoints to alarm, specify 1 out of 1.

    • For Missing data treatment, choose Treat missing data as missing.

  12. Choose Next.

  13. Under Notification, ensure that In alarm is selected. Then specify an Amazon SNS topic to be notified when your alarm is in the ALARM state. The Amazon SNS topic can include your email address so that you recieve email when the billing amount crosses the threshold that you specified.

    You can select an existing Amazon SNS topic, create a new Amazon SNS topic, or use a topic ARN to notify other account. If you want your alarm to send multiple notifications for the same alarm state or for different alarm states, choose Add notification.

  14. Choose Next.

  15. Under Name and description, enter a name for your alarm.

    1. (Optional) Enter a description of your alarm.

  16. Choose Next.

  17. Under Preview and create, make sure that your configuration is correct, and then choose Create alarm.

Step 3: Check the alarm status

Now, check the status of the billing alarm that you just created.

To check the alarm status
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.

  3. In the navigation pane, choose Alarms.

  4. Select the check box next to the alarm. Until the subscription is confirmed, it is shown as "Pending confirmation". After the subscription is confirmed, refresh the console to show the updated status.

Step 4: Edit a billing alarm

For example, you may want to increase the amount of money you spend with Amazon each month from $200 to $400. You can edit your existing billing alarm and increase the monetary amount that must be exceeded before the alarm is triggered.

To edit a billing alarm
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.

  3. In the navigation pane, choose Alarms.

  4. Select the check box next to the alarm and choose Actions, Modify.

  5. For Whenever my total Amazon charges for the month exceed, specify the new amount that must be exceeded to trigger the alarm and send an email notification.

  6. Choose Save Changes.

Step 5: Delete a billing alarm

If you no longer need your billing alarm, you can delete it.

To delete a billing alarm
  1. Open the CloudWatch console at https://console.amazonaws.cn/cloudwatch/.

  2. If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.

  3. In the navigation pane, choose Alarms.

  4. Select the check box next to the alarm and choose Actions, Delete.

  5. When prompted for confirmation, choose Yes, Delete.