AWS Billing and Cost Management

Overview

AWS Billing and Cost Management shows your estimated charges and budgeting metrics.

Enable this integration to see your AWS Billing and Cost Management metrics in Datadog.

Note: This integration requires the permission budgets:ViewBudget to be fully enabled. Billing metrics need to be enabled in the AWS console. For more information on setting up AWS, see the Amazon Web Services integration documentation.

Setup

Installation

If you haven’t already, set up the Amazon Web Services integration first.

Metric collection

  1. On the AWS integration page, ensure that Billing is enabled under the Metric Collection tab.
  2. Install the Datadog - AWS Billing integration.

Log collection

Enable logging

Configure AWS billing to send logs either to a S3 bucket or to CloudWatch.

Note: If you log to a S3 bucket, make sure that amazon_billing is set as Target prefix.

Send logs to Datadog

  1. If you haven’t already, set up the Datadog Forwarder Lambda function.

  2. Once the Lambda function is installed, manually add a trigger on the S3 bucket or CloudWatch log group that contains your AWS billing logs in the AWS console:

Monitoring CloudWatch usage

After setting up your AWS permissions to add the budgets:ViewBudget permission, you can monitor CloudWatch billing with this integration.

AWS billing metrics are available about once every 4 hours. You may have to wait 4 hours for Datadog to collect the metrics.

Once the metrics are available, look at aws.billing.estimated_charges and aws.billing.forecasted_charges. You can use these metrics to track your CloudWatch usage by filtering the context down to service:amazoncloudwatch. You can break down the spend to each AWS account using max:account_id.

The metric aws.billing.estimated_charges is what AWS believes to be the CloudWatch bill so far for the current month. This value is reset to 0 at the start of each month. The metric aws.billing.forecasted_charges is your estimated CloudWatch bill for the end of the month based on current usage.

Data Collected

Metrics

aws.billing.actual_spend
(gauge)
The actual spending costs for your budget period.
Shown as dollar
aws.billing.budget_limit
(gauge)
The spending limit for your budget period.
Shown as dollar
aws.billing.estimated_charges
(gauge)
The estimated charges for your AWS usage. This can either be estimated charges for one service or a roll-up of estimated charges for all services.
Shown as dollar
aws.billing.forecasted_spend
(gauge)
The forecasted spending costs for your budget period.
Shown as dollar

Events

The AWS Billing and Cost Management integration does not include any events.

Service Checks

The AWS Billing and Cost Management integration does not include any service checks.

Troubleshooting

Need help? Contact Datadog support.