You can monitor your estimated AWS charges by using Amazon CloudWatch. When you enable the monitoring of estimated charges for your AWS 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 represents worldwide charges. This data includes the estimated charges for every service in AWS that you use, in addition to the estimated overall total of your AWS charges.
The alarm triggers when your account billing exceeds the threshold you specify. It triggers only when the current billing exceeds the threshold. It doesn't use projections based on your usage so far in the month.
If you create a billing alarm at a time when your charges have already exceeded the threshold, the alarm goes to the ALARM state immediately.
Note
For information about analyzing CloudWatch charges that you have already been billed for, see CloudWatch billing and cost.
Before you can create an alarm for your estimated charges, you must enable billing alerts, so that you can monitor your estimated AWS charges and create an alarm using billing metric data. After you enable billing alerts, you can't 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.
You must be signed in using account root user credentials or as an IAM user that 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 AWS Partner Network.
Open the AWS Billing console at https://console.aws.amazon.com/billing/.
In the navigation pane, choose Billing Preferences.
Choose Receive Billing Alerts.
Choose Save preferences.
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 Enabling billing alerts.
In this procedure, you create an alarm that sends a notification when your estimated charges for AWS exceed a defined threshold.
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
In the navigation pane, choose Alarms, and then choose All alarms.
Choose Create alarm.
Choose Select metric. In Browse, choose Billing, and then choose Total Estimated Charge.
Select the box for the EstimatedCharges metric, and then choose Select metric.
For Statistic, choose Maximum.
For Period, choose 6 hours.
For Threshold type, choose Static.
For Whenever EstimatedCharges is . . ., choose Greater.
For than . . ., define a threshold value that triggers your alarm (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 AWS Billing?.
After you define a threshold value, the preview graph displays your estimated charges for the current month.
In Additional Configuration, do the following:
For Datapoints to alarm, specify 1 out of 1.
For Missing data treatment, choose Treat missing data as missing.
Choose Next.
Under Notification, specify an Amazon SNS topic to be notified when your alarm is in the ALARM state. 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.
Choose Next.
Under Name and description, enter a name for your alarm.
(Optional) Enter a description of your alarm.
Under Preview and create, make sure that your configuration is correct, and then choose Create alarm.
You can delete your billing alarm when you no longer need it.
Open the CloudWatch console at https://console.aws.amazon.com/cloudwatch/.
If necessary, change the Region to US East (N. Virginia). Billing metric data is stored in this Region and reflects worldwide charges.
In the navigation pane, choose Alarms, All alarms.
Select the check box next to the alarm and choose Actions, Delete.
When prompted for confirmation, choose Yes, Delete.
您可以监视你的估计使用亚马逊CloudWatch AWS的指控。当你启用监控估计费用AWS帐户,估计费用计算和多次发送每日监测指标数据。
计费标准数据存储在美国东弗吉尼亚(n)地区和代表全球的指控。这些数据包括估计费用为每个服务在您使用AWS,除了AWS的估计的总费用。
警报触发时,你的账户账单超过您所指定的阈值。它触发仅当当前账单超过阈值。它不使用预测基于您的使用在本月到目前为止。
如果您创建了一个计费报警时你的费用已经超过了阈值,立即报警的报警状态。
请注意
信息分析监测费用你已经收费了,看到CloudWatch计费和成本。
估计之前,您可以创建一个警报