---
title: AWS Billing and Cost Management
description: AWS Billing allows you to track your AWS billing forecasts and costs.
breadcrumbs: Docs > Integrations > AWS Billing and Cost Management
---

# AWS Billing and Cost Management

## Overview{% #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](https://docs.datadoghq.com/integrations/amazon_web_services/).

## Setup{% #setup %}

### Installation{% #installation %}

If you haven't already, set up the [Amazon Web Services integration](https://docs.datadoghq.com/integrations/amazon_web_services/) first.

### Metric collection{% #metric-collection %}

1. On the [AWS integration page](https://app.datadoghq.com/integrations/amazon-web-services), ensure that `Billing` is enabled under the `Metric Collection` tab.
1. Install the [Datadog - AWS Billing integration](https://app.datadoghq.com/integrations/amazon-billing).

### Log collection{% #log-collection %}

#### Enable logging{% #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{% #send-logs-to-datadog %}

1. If you haven't already, set up the [Datadog Forwarder Lambda function](https://docs.datadoghq.com/logs/guide/forwarder/).

1. 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:

   - [Add a manual trigger on the S3 bucket](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-s3-buckets)
   - [Add a manual trigger on the CloudWatch Log Group](https://docs.datadoghq.com/logs/guide/send-aws-services-logs-with-the-datadog-lambda-function/#collecting-logs-from-cloudwatch-log-group)

## Monitoring CloudWatch usage{% #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{% #data-collected %}

### Metrics{% #metrics %}

|  |
|  |
| **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.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.forecasted\_spend**(gauge)  | The forecasted spending costs for your budget period.*Shown as dollar*                                                                                              |

### Events{% #events %}

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

### Service Checks{% #service-checks %}

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

## Troubleshooting{% #troubleshooting %}

Need help? Contact [Datadog support](https://docs.datadoghq.com/help/).
