- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
To use Azure Cloud Cost Management in Datadog, you must set up the Datadog Azure integration and set up amortized and actual exports in Azure. Additionally, Datadog must have permissions to read the exports from the container.
Datadog provides cost visibility on a Subscription, Resource Group, and Billing Account Level. Microsoft Customer Agreements (MCA) can only set up at the Subscription or Resource Group level. Pay as you go (PAYG) and CSP accounts are not supported.
Notes:
Navigate to Setup & Configuration and select an Azure account from the menu to pull costs from. If you do not see your Azure account in the list, view your Azure integration to add your account.
You need to generate exports for two data types: actual and amortized. Datadog recommends using the same storage container for both exports.
Navigate to Exports under Azure portal’s Cost Management + Billing. The Azure portal screens look different from the images below if the “Improved exports (Preview)” is enabled for your account, or if you are accessing the Azure portal through the https://preview.portal.azure.com
address.
Select the export scope. Note: The scope must be billing account, subscription, or resource group.
After the scope is selected, click Add.
Select the following Export details:
On
Choose a storage account, container, and directory for the exports.
.
in these fields.Select Create.
In the left hand navigation panel, select Cost Management, then Reporting + analytics.
Select the export scope. Note: The scope must be billing account, subscription, or resource group.
Click Create.
Select “Cost and usage (actual + amortized)”.
Enter an “Export prefix” for the new exports. For example, enter “datadog” to avoid conflicts with existing exports.
Click “Edit” on each export and confirm the following details:
2021-10-01
, 2021-01-01
, 2020-01-01
2019-10-01
In the destination tab, select the following details:
.
in these fields.Click Next, then Review + Create.
For faster processing, generate the first exports manually by clicking Run Now.
Note: For Microsoft Customer Agreement, set up at the subscription level.
If your exports are in different storage containers, repeat steps one to seven for the other storage container.
If your exports are in different storage containers, repeat steps one to seven for the other storage container.
Note: You do not need to configure this access if your scope is Billing Account.
This ensures complete cost accuracy by allowing periodic cost calculations against Microsoft Cost Management.
Navigate to Setup & Configuration and follow the steps.
You can visualize your ingested data using the following cost types:
Cost Type | Description |
---|---|
azure.cost.amortized | Cost based on applied discount rates plus the distribution of pre-payments across usage for the discount term (accrual basis). |
azure.cost.actual | Cost shown as the amount charged at the time of usage (cash basis). Actual costs include private discounts as well as discounts from reserved instances and savings plans as separate charge types. |
azure.cost.discounted.ondemand | Cost based on the list rate provided by Azure, after privately negotiated discounts. To get the true on-demand cost, divide this metric by (1 - <negotiated_discount>). For example if you have a 5% flat rate discount across all Azure products, taking this metric and dividing by .95 (1-.05) provides the true on-demand price. |
Datadog adds out-of-the-box tags to ingested cost data to help you further break down and allocate your costs. These tags are derived from your usage cost report and make it easier to discover and understand cost data.
Tag Name | Tag Description |
---|---|
accountname | The name of the account associated with the line item. |
accountownerid | The ID of the owner associated with the line item. |
billingaccountid | The ID of the billing account associated with the line item. |
billingaccountname | The name of the billing account associated with the line item. |
billingcurrency | The currency associated with the billing account. |
billingperiod | The billing period of the charge. |
billingperiodenddate | The end date of the billing period. |
billingperiodstartdate | The start date of the billing period. |
billingprofileid | The unique identifier of the Enterprise Agreement enrollment. |
billingprofilename | The name of the Enterprise Agreement enrollment. |
chargetype | The type of charge covering the line item: Usage , Purchase , or Refund . |
consumedservice | The name of the service the line item is associated with. |
costcenter | The cost center defined for the subscription for tracking costs. |
costinbillingcurrency | The cost in the billing currency before credits or taxes. |
costinpricingcurrency | The cost in the pricing currency before credits or taxes. |
currency | The currency associated with the billing account. |
date | The usage or purchase date of the charge. |
effectiveprice | The blended unit price for the period. Blended prices average out any fluctuations in the unit price, like graduated tiering, which lowers the price as quantity increases. |
exchangeratedate | The date the exchange rate was established. |
exchangeratepricingtobilling | The exchange rate used to convert the cost in the pricing currency to the billing currency. |
frequency | Indicates whether a charge is expected to repeat. Charges can either happen once (OneTime ), repeat on a monthly or yearly basis (Recurring ), or be based on usage (Usage ) |
InvoiceId | The unique document ID listed on the invoice PDF. |
invoicesectionid | The ID of the MCA invoice section. |
invoicesectionname | The name of the EA department. |
isazurecrediteligible | true if the charge is eligible to be paid for using Azure credits. |
location | The data center location where the resource is running. |
metercategory | The top level service that this usage belongs to (such as Networking ). |
meterid | The unique ID for the meter. |
metername | The usage details of the line item (such as L8s v2 or General Purpose Data Stored ). |
meterregion | The data center location for the services priced based on location (such as West US 2 ). Use resourcelocation to see location data without N/A . |
metersubcategory | The name of the meter subclassification category (such as General Purpose - Storage ). Use metername or metercategory to see top-level classification without N/A . |
offerid | The name of the offer purchased. |
partnumber | The ID used to get specific meter pricing. |
planname | The marketplace plan name if purchased through marketplace. |
PreviousInvoiceId | Reference to an original invoice if this line item is a refund. |
PricingCurrency | The currency used when rating based on negotiated prices. |
pricingmodel | The type of usage (such as Reservation ). |
ProductId | The identifier for a specific Azure product. |
productname | The name of the Azure product at a granular level, such as VM or disk type and region. |
productorderid | The ID for the product order. Use productname to see top level product information without N/A . |
productordername | The name of the product order. Use productname to see top level product information without N/A . |
publishername | The publisher for marketplace services. |
publishertype | The type of publisher: Microsoft for Microsoft Customer Agreement accounts and Azure for Enterprise Agreement accounts. |
reservationid | The ID for the purchased reservation instance. If you see N/A values, these are OnDemand resources, which can be checked using the pricingmodel tag. |
reservationname | The name of the purchased reservation instance. If you see N/A values, these are OnDemand resources, which can be checked using the pricingmodel tag. |
resourcegroup | The name of the resource group the resource is in. Not all charges come from resources deployed to resource groups. |
resourceid | The ID of the Azure resource. |
resourcelocation | The data center location where the resource is running (such as westus2 ). |
resourcename | The name of the resource. Not all charges come from deployed resources. |
ResourceType | |
servicefamily | The service family that the service belongs to (such as Compute ). The tag consumedservice has deeper insights on infrastructure types. |
ServicePeriodEndDate | The termination date of the Azure service period. |
ServicePeriodStartDate | The start date the Azure service period. |
subscriptionid | The ID of the Azure subscription. |
subscriptionname | The name of the Azure subscription. |
term | Describes the duration or term of the Savings Plan in months (such as 12 ). |
unitofmeasure | The unit of measure for billing for the service. For example, compute services are billed per hour. |
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 adds the name
tag on cost data for top Azure products to simplify correlating observability and cost metrics.
For example, to view cost and utilization for each Azure VM, you can make a table with azure.cost.amortized
and azure.vm.network_in_total
(or any other VM metric) and group by name
. Or, to see Storage usage and costs side by side, you can filter into metercategory:Storage
and graph azure.storage.transactions
and azure.cost.amortized
grouped by name
.
You can create historical data in your storage account using the Microsoft API or by creating a support ticket with Microsoft to have them backfill cost data. Cloud Cost Management automatically pulls in up to 15 months of historical data as long as the file structure and partitioning follows the format of scheduled exports.