これにより、AWS Cost Explorer に対して定期的にコスト計算を行うことができ、完全なコスト精度を確保することができます。
Cost and Usage Report を探す
If you have navigated away from the report that you created in the prerequisites section, follow AWS documentation to view your Data Exports. Select the legacy CUR export that you created, then select Edit to see the details of the export.
Datadog が Cost and Usage Report を検索できるようにするには、対応する詳細情報をフィールドに入力します。
Bucket Name: This is the name of the S3 bucket in the Data export storage settings section.
Bucket Region: This is the region your bucket is located. For example, us-east-1.
Export Path Prefix: This is the S3 path prefix in the Data export storage settings section.
Export Name: This is the Export name in the Export name section.
Note: Datadog only supports legacy CURs generated by AWS. Do not modify or move the files generated by AWS, or attempt to provide access to files generated by a 3rd party.
Cost and Usage Report へのアクセス構成
Create a policy in AWS to ensure Datadog has permissions to access the CUR and the S3 bucket it is stored in. Use the following JSON:
Net amortized costs provide the most accurate representation for cost allocation, with all savings applied directly to usage. Net cost metrics are available if your AWS account has privately negotiated enterprise discounts. If your account does not have enterprise discounts, then net amortized cost and amortized cost are equivalent.
AWS インテグレーションタグは、Datadog インテグレーションページの AWS Integration タイルで設定されるタグです。これらは、関連する AWS アカウントの CUR で見つかったすべてのコストに適用されます。
すぐに使えるタグ
Datadog は、取り込んだコストデータにすぐに使えるタグを追加し、コストの細分化と割り当てを支援します。これらのタグは、Cost and Usage Report (CUR) から導き出され、コストデータの発見と理解を容易にします。
The following out-of-the-box tags are available for filtering and grouping data:
タグ
説明
aws_product
課金対象となる AWS サービス。
aws_product_family
課金対象となる AWS サービスのカテゴリー (例: Compute、Storage など)。
aws_management_account_name
項目に関連付けられた AWS 管理アカウント名。
aws_management_account_id
項目に関連付けられた AWS 管理アカウント ID。
aws_member_account_name
項目に関連付けられた AWS メンバーアカウント名。
aws_member_account_id
項目に関連付けられた AWS メンバーアカウント ID。
aws_cost_type
この項目で対象となる料金の種類 (例: 使用料、消費税など)。
aws_pricing_term
予約、スポット、オンデマンドのいずれの利用形態か。
aws_reservation_arn
項目が恩恵を受けたリザーブドインスタンスの ARN。
aws_savings_plan_arn
項目が恩恵を受けたセービングプランの ARN。
aws_usage_type
項目の使用量 (例: BoxUsage:i3.8xlarge)。
aws_operation
項目に関連する演算子 (例: RunInstances)。
aws_region
The region associated with the item (such as us-east-1).
aws_availability_zone
項目に関連するアベイラビリティゾーン。
aws_resource_id
項目に関連するリソース ID。
aws_instance_type
The instance type of the item.
aws_instance_family
項目に関連するインスタンスファミリー (例: Storage optimized)。
is_aws_ec2_compute
使用が EC2 コンピュートに関するものかどうか。
is_aws_ec2_compute_on_demand
使用がオンデマンドであるかどうか。
is_aws_ec2_compute_reservation
使用がリザーブドインスタンスと関連しているかどうか。
is_aws_ec2_capacity_reservation
使用が容量予約と関連しているかどうか。
is_aws_ec2_spot_instance
使用がスポットインスタンスと関連しているかどうか。
is_aws_ec2_savings_plan
使用がセービングプランと関連しているかどうか。
aws_bill_entity
The AWS seller that your account is with. Transactions can either be an AWS Marketplace purchase (AWS Marketplace) or a purchase of other AWS services (AWS).
aws_bill_type
The type of bill that this report covers (such as Purchase).
aws_cost_type
The type of charge covering the line item (such as SavingsPlanCoveredUsage).
aws_discount_lease_term
The length of time that a Reserved instance is reserved for.
aws_discount_purchase_option
How you chose to pay for a reservation (such as All Upfront).
aws_ec2_compute_product_family
The type of usage for an EC2 Compute line item (such as BoxUsage or SpotUsage).
aws_pricing_usage_unit
The pricing unit that AWS used for calculating the usage cost (such as Hours).
aws_reservation_modification_status
Indicates whether the RI lease was modified or unaltered (such as Manual).
bill/billing_entity
The AWS seller that your account is with. Transactions can either be an AWS Marketplace purchase (AWS Marketplace) or a purchase of other AWS services (AWS).
bill/bill_type
The type of bill that this report covers (such as Purchase).
bill/invoicing_entity
The AWS entity that issues the invoice.
bill/payer_account_id
The account ID of the paying account. For an organization in AWS Organizations, this is the account ID of the management account.
is_aws_ec2_compute_savings_plan
true for line items that represent EC2 Compute usage, paid for using a Savings Plan.
line_item/currency_code
The currency that this line item is shown in (USD by default).
line_item/legal_entity
The provider of your AWS services.
line_item/line_item_type
The type of charge covered by the line item (such as Credit).
line_item/operation
The specific AWS operation covered by the line item (such as RunInstances).
line_item/product_code
The code of the product measured (such as Amazon EC2 for Amazon Elastic Cloud Compute).
line_item/resource_id
The individual resource ID associated with the line item (Optional).
line_item/tax_type
The type of tax that AWS applied to the line item.
line_item/usage_account_id
The ID of the account that used the line item.
line_item/usage_type
The usage details of the line item (such as USW2-BoxUsage:m2.2xlarge).
pricing/lease_contract_length
The length of time that the RI is reserved for.
pricing/purchase_option
How you chose to pay for the line item (such as All Upfront).
pricing/term
Whether your AWS usage is Reserved or On-Demand.
pricing/unit
The pricing unit that AWS used for calculating the usage cost (such as Hours).
reservation/availability_zone
The Availability Zone of the resource associated with the line item (such as us-east-1).
reservation/modification_status
Shows whether the RI lease was modified or unaltered (such as Manual).
reservation/reservation_arn
The ARN of the RI that the line item benefited from.
reservation/subscription_id
The unique ID that maps the line item with the associated offer.
savings_plan/instance_type_family
The instance family that is associated with the specified usage (such as m4).
savings_plan/offering_type
The type of Savings Plan purchased (such as ComputeSavingsPlans).
savings_plan/payment_option
The payment options available for the Savings Plan (such as All Upfront).
savings_plan/purchase_term
Describes the duration or term of the Savings Plan (such as 1yr).
savings_plan/region
The AWS Region that hosts the AWS services (such as US East (N. Virginia)).
savings_plan/savings_plan_arn
The unique Savings Plan identifier.
Cost and observability correlation
Viewing costs in context of observability data is important to understand how infrastructure changes impact costs, identify why costs change, and optimize infrastructure for both costs and performance. Datadog updates resource identifying tags on cost data for top AWS products to simplify correlating observability and cost metrics.
For example, to view cost and utilization for each RDS database, you can make a table with aws.cost.amortized, aws.rds.cpuutilization, and aws.rds.freeable_memory (or any other RDS metric) and group by dbinstanceidentifier. Or, to see Lambda usage and costs side by side, you can graph aws.lambda.concurrent_executions and aws.cost.amortized grouped by functionname.
AWS Billing Conductor is a custom billing service for AWS Marketplace Channel Partners (Partners) and organizations that have chargeback requirements.
Billing Conductor enables customers to create a second, pro forma version of their costs to share with their customers or account owners.
Billing rates, credits and fees, and overhead costs can be customized at your discretion. You can also select which accounts to include in the CUR.
Pro Forma Cost and Usage Reports do not include discounts and taxes, which makes it difficult to compare costs in Datadog to AWS Cost Explorer.
Additionally, adding accounts to a billing group impacts how Reservations and Savings Plans are shared across AWS accounts.