---
isPrivate: true
title: SaaS Cost Integrations
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Cloud Cost Management > Setup > SaaS Cost Integrations
---

# SaaS Cost Integrations

{% callout %}
##### Join the Preview!

SaaS Cost Integrations are in Preview.
{% /callout %}

## Overview{% #overview %}

SaaS Cost Integrations allow you to send cost data **directly from your providers** by configuring the accounts associated with your cloud cost data in Datadog.

- [snowflake](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=snowflake#configure-your-saas-accounts)
- [databricks](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=databricks#configure-your-saas-accounts)
- [openai](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=openai#configure-your-saas-accounts)
- [anthropic](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=anthropic#configure-your-saas-accounts)
- [github](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=github#configure-your-saas-accounts)
- [confluent cloud](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=confluentcloud#configure-your-saas-accounts)
- [mongodb](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=mongodb#configure-your-saas-accounts)
- [elastic cloud](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=elasticcloud#configure-your-saas-accounts)
- [fastly](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=fastly#configure-your-saas-accounts)
- [twilio](https://docs.datadoghq.com/cloud_cost_management/setup/saas_costs/?tab=twilio#configure-your-saas-accounts)

If your provider is not supported, use [Custom Costs](https://docs.datadoghq.com/cloud_cost_management/setup/custom) to upload any cost data source to Datadog and understand the total cost of your services. Only SaaS costs in USD are supported at this time.

## Setup{% #setup %}

To use SaaS Cost Integrations, you must configure [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management) for AWS, Azure, Google Cloud, or Oracle Cloud.

See the respective documentation for your cloud provider:

- [aws](https://docs.datadoghq.com/cloud_cost_management/setup/aws/)
- [azure](https://docs.datadoghq.com/cloud_cost_management/setup/azure/)
- [google cloud](https://docs.datadoghq.com/cloud_cost_management/setup/google_cloud/)

### Configure your SaaS accounts{% #configure-your-saas-accounts %}

Navigate to [**Cloud Cost** > **Settings**, select **Accounts**](https://app.datadoghq.com/cost/settings/accounts) and then click **Configure** on a provider to collect cost data.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/all_accounts.fe382cdbd1242d3c254c8ca8022e010a.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/all_accounts.fe382cdbd1242d3c254c8ca8022e010a.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Add your accounts with AWS, Azure, Google Cloud to collect cost data. You can also add your accounts for Fastly, Snowflake, Confluent Cloud, MongoDB, Databricks, OpenAI, Twilio, and GitHub" /%}

{% tab title="Snowflake" %}

1. Find your [Snowflake account URL](https://docs.snowflake.com/en/user-guide/organizations-connect).

   {% image
      source="https://docs.dd-static.net/images/integrations/snowflake/snowflake_account_url.ea1dd1f6fd4ccf8f43872756d0c64e25.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/integrations/snowflake/snowflake_account_url.ea1dd1f6fd4ccf8f43872756d0c64e25.png?auto=format&fit=max&w=850&dpr=2 2x"
      alt="The account menu with the copy account URL option selected in the Snowflake UI" /%}

1. Navigate to the [Snowflake integration tile](https://app.datadoghq.com/integrations/snowflake-web) in Datadog and click **Add Snowflake Account**.

1. Enter your Snowflake account URL in the `Account URL` field. For example: `https://xyz12345.us-east-1.snowflakecomputing.com`.

1. Under the **Connect your Snowflake account** section, click the toggle to enable Snowflake in Cloud Cost Management.

1. Enter your Snowflake user name in the `User Name` field.

1. Follow step 4 of the [Snowflake integration](https://docs.datadoghq.com/integrations/snowflake-web/#cloud-cost-management) page to create a Datadog-specific role and user to monitor Snowflake.

1. Follow step 5 of the [Snowflake integration](https://docs.datadoghq.com/integrations/snowflake-web/#cloud-cost-management) page to configure the key-value pair authentication.

1. Click **Save**.

Snowflake cost data from the past 6 months is available in Cloud Cost Management within 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

**Snowflake query tags**

[Snowflake's query tags](https://docs.snowflake.com/en/sql-reference/parameters#query-tag) are powerful metadata strings that can be associated with queries. The [Snowflake Cost Management integration](https://app.datadoghq.com/integrations/snowflake-web) ingests [JSON parsable](https://docs.snowflake.com/en/sql-reference/functions/parse_json) query tags present in a comma-separated allowlist found in the Snowflake integration tile.

For example, if an organization wishes to group its Snowflake compute costs by the `team` and `application` dimensions, it may choose to tag its Snowflake queries for a specific team's application in the following manner:

```
ALTER SESSION SET QUERY_TAG = '{"team": "devops", "application": "CI_job_executor"}';
```

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/snowflake_query_tags_example.5fc0adb4c63b15ba5c445117880aaad1.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/snowflake_query_tags_example.5fc0adb4c63b15ba5c445117880aaad1.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Group costs by team and application query tags." /%}

As a result, the costs of all queries executed with the `team` and `application` query tags are attributable to those concepts.

To use query tags within cost management, ensure the following:

- The `query_tag` string must be JSON parsable. Specifically, this means that the string is processable by the native `PARSE_JSON` function.

- An allowlist of keys must be provided in the Snowflake integration tile. These keys map to the first layer of the JSON-formatted `query_tag` field. This allowlist appears in the form of a comma-separated list of strings for example: `tag_1,tag_2,tag_3`. Ensure that strings contain only alphanumeric characters, underscores, hyphens, and periods. You can enter this information into the Snowflake tile, under **Resources Collected -> Cloud Cost Management -> Collected Query Tags**.

**Note**: Select your query tags with data magnitude in mind. Appropriate query tags are ones that have low to medium group cardinality (for example: team, user, service). Selecting a query tag with high group cardinality (such as unique UUID associated with job executions) can result in bottlenecking issues for both data ingestion and frontend rendering.

**Snowflake CCM object tags**

Object tags are user-defined strings that you can attach to Snowflake objects for enhanced auditability and cost analysis. For example, to track costs by team, tag your warehouses with the respective teams that use them.

All object tag configuration is done within [Snowflake](https://docs.snowflake.com/en/user-guide/object-tagging).

Notes:

- **Tag Inheritance**: Snowflake objects adhere to a hierarchical structure, and the CCM integration considers inherited tags when submitting cost data.

  {% image
     source="https://docs.dd-static.net/images/cloud_cost/saas_costs/snowflake_setup.dad412a44109b209a88eb4b345052d4b.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/snowflake_setup.dad412a44109b209a88eb4b345052d4b.png?auto=format&fit=max&w=850&dpr=2 2x"
     alt="Integrate with Snowflake to collect cost data." /%}

{% /tab %}

{% tab title="Databricks" %}

1. Navigate to the [Databricks integration tile](https://app.datadoghq.com/integrations/databricks) in Datadog and click **Configure**.
1. Enter the workspace name, url, client ID, and client secret corresponding to your Databricks service principal.
1. Under the **Select products to set up integration** section, click the toggle for each account to enable Databricks `Cloud Cost Management`.
1. Enter a `System Tables SQL Warehouse ID` corresponding to your Databricks instance's warehouse to query for system table billing data.
1. Click **Save Databricks Workspace**.

Your service principal requires read access to the [system tables](https://docs.databricks.com/aws/en/admin/system-tables/) within Unity Catalog.

```sql
GRANT USE CATALOG ON CATALOG system TO <service_principal>;
GRANT USE SCHEMA ON CATALOG system TO <service_principal>;
GRANT SELECT ON CATALOG system TO <service_principal>;
```

Your Databricks cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/databricks_setup_1.8ae437bda980c5808d04ab22e9537c71.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/databricks_setup_1.8ae437bda980c5808d04ab22e9537c71.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with Databricks to collect cost data." /%}

{% /tab %}

{% tab title="OpenAI" %}

{% alert level="danger" %}
An **admin-scoped API key is required** to collect OpenAI cost data for Cloud Cost Management. Project-scoped API keys cannot collect cost data.
{% /alert %}

1. Create an [admin API key](https://platform.openai.com/docs/api-reference/admin-api-keys) in your OpenAI account settings:
   - Log in to your [OpenAI Account](https://platform.openai.com/).
   - Navigate to the [Admin Keys page](https://platform.openai.com/settings/organization/admin-keys) or go to **API keys** under **Organization settings** and select the **Admin keys** tab.
   - Click **Create a new secret key** and copy the created admin API key.
1. Navigate to the [OpenAI integration tile](https://app.datadoghq.com/integrations/openai) in Datadog and click **Add Account**.
1. Enter your OpenAI account name, input your admin API key, and optionally, specify tags.
1. Under the **Resources** section, click the toggle for each account to enable `OpenAI Billing Usage Data Collection`.
1. Click **Save**.

Your OpenAI cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/openai_setup.177cb1d3415dee2b0e7b66795972602e.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/openai_setup.177cb1d3415dee2b0e7b66795972602e.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with OpenAI to collect cost data." /%}

{% /tab %}

{% tab title="Anthropic" %}
### 1. Generate an Admin API key

Begin by getting an [Admin API key](https://docs.anthropic.com/en/api/administration-api) from Anthropic. This key allows access to usage and cost reports across your organization.

1. Navigate to your organization's settings or reach out to your Anthropic account admin to create a new Admin API key.
1. Copy the API key to a secure location.

### 2. Configure the Datadog integration

1. In Datadog, go to [**Integrations > Anthropic Usage and Costs**](https://app.datadoghq.com/integrations?integrationId=anthropic-usage-and-costs).
1. On the **Configure** tab, under **Account details**, paste in the **Admin API Key** from Anthropic.
1. Click **Save**.

After you save your configuration, Datadog begins polling Anthropic usage and cost endpoints using this key, and populates metrics in your environment.
{% /tab %}

{% tab title="GitHub" %}

1. Create a personal authorization token (classic), with the `manage_billing:enterprise` and `read:org` scopes on the [Personal Access Tokens](https://github.com/settings/tokens) page in GitHub.
1. Navigate to the Datadog [GitHub Costs tile](https://app.datadoghq.com/integrations/github-costs).
1. Click **Add New**.
1. Enter an account name, your personal access token, and your enterprise name (in `enterprise-name` format), as well as any appropriate tags.
1. Click the checkmark button to save this account.

Your GitHub cost data for the past 15 months can be accessed in Cloud Cost Management within 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/github_setup.5817581f829f95466878bbc36e727bd3.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/github_setup.5817581f829f95466878bbc36e727bd3.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with GitHub to collect cost data." /%}

{% /tab %}

{% tab title="Confluent Cloud" %}

1. Create or acquire an API key with the [billing admin](https://docs.confluent.io/cloud/current/security/access-control/rbac/predefined-rbac-roles.html#billingadmin-role) role in Confluent Cloud.
1. Navigate to the [Confluent Cloud integration tile](https://app.datadoghq.com/integrations/confluent-cloud) in Datadog and click **Add Account**.
1. Enter your Confluent Cloud account name, API key, API secret, and optionally, specify tags.
1. Under the **Resources** section, click the toggle for `Collect cost data to view in Cloud Cost Management`.
1. Click **Save**.

Your Confluent Cloud cost data becomes available in Cloud Cost Management 24 hours after setup. This data automatically includes 12 months of history, the maximum provided by the Confluent billing API. Over the next three months, the data gradually expands to cover 15 months of history. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

If you wish to collect cluster-level tags or business metadata tags for your costs, you can add a Schema Registry API key and secret. Please look into [Schema Management on Confluent Cloud](https://docs.confluent.io/cloud/current/get-started/schema-registry.html#quick-start-for-schema-management-on-ccloud) for more information.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/confluent_setup_1.1a9b8c21c62c484a541ea554ebf408cf.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/confluent_setup_1.1a9b8c21c62c484a541ea554ebf408cf.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with Confluent to collect cost data." /%}

{% /tab %}

{% tab title="MongoDB" %}

1. [Create an API token](https://www.mongodb.com/docs/cloud-manager/reference/user-roles/#organization-roles) in MongoDB with `Organizational Billing Viewer` permissions, and add `Organizational Read Only` permissions for cluster resource tags.
1. Navigate to the [MongoDB Cost Management integration tile](https://app.datadoghq.com/integrations/mongodb-cost-management) in Datadog and click **Add New**.
1. Enter your MongoDB account name, public key, private key, organizational ID, and optionally, specify tags.
1. Click **Save**.

Your MongoDB cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/mongodb_setup.3b735d7cb23029e68340b7c8e8830579.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/mongodb_setup.3b735d7cb23029e68340b7c8e8830579.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with MongoDB to collect cost data." /%}

{% /tab %}

{% tab title="Elastic Cloud" %}

1. Go to the [API Key](https://cloud.elastic.co/account/keys) section in your Elastic Cloud organization's settings.
1. Click **Create New Key**.
1. Choose a **Name** and **Expiration Date** for your API key.
1. Select the **Billing Admin** role.
1. Click **Create Key** to generate the key.
1. Go to the [Elastic Cloud integration tile](https://app.datadoghq.com/integrations/elastic-cloud-ccm) in Datadog
1. Click **Add Account**.
1. Enter your **Elastic Cloud Organization ID** and **Billing API Key** in the account table.

Your Elastic Cloud cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/elasticcloud_setup.27be8d863d634e5dac0585099d37d274.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/elasticcloud_setup.27be8d863d634e5dac0585099d37d274.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with Elastic Cloud to collect cost data." /%}

{% /tab %}

{% tab title="Fastly" %}

1. Create an API token with at least the `"global:read"` scope and `"Billing"` role on the [Personal API tokens](https://manage.fastly.com/account/personal/tokens) page in Fastly.
1. Navigate to the [Fastly cost management integration tile](https://app.datadoghq.com/integrations/fastly-cost-management) in Datadog and click **Add New**.
1. Enter your Fastly account name and API token.
1. Click **Save**.

Your Fastly cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/fastly_setup_1.d9ff9cf03e43726243de29d47f5fcfee.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/fastly_setup_1.d9ff9cf03e43726243de29d47f5fcfee.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with Fastly to collect cost data." /%}

{% /tab %}

{% tab title="Twilio" %}

1. Navigate to the [Twilio integration tile](https://app.datadoghq.com/integrations/twilio) in Datadog and click **Add Account**.
1. Under the **Resources** section, click the toggle for each account to enable `Twilio in Cloud Cost Management`.
1. Enter an `Account SID` for your Twilio account.
1. Click **Save**.

Your Twilio cost data for the past 15 months can be accessed in Cloud Cost Management after 24 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.

{% image
   source="https://docs.dd-static.net/images/cloud_cost/saas_costs/twilio_setup.221c96b05a71c4189d9dade67659733c.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/cloud_cost/saas_costs/twilio_setup.221c96b05a71c4189d9dade67659733c.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Integrate with Twilio to collect cost data." /%}

{% /tab %}

## Data Collected{% #data-collected %}

You can view cost data on the [**Cloud Cost Explorer** page](https://app.datadoghq.com/cost/explorer), the [Cloud Cost Tag Explorer](https://app.datadoghq.com/cost/tags?cloud=custom), and in [dashboards](https://docs.datadoghq.com/dashboards), [notebooks](https://docs.datadoghq.com/notebooks), or [monitors](https://docs.datadoghq.com/monitors/types/cloud_cost). You can also combine these cost metrics with other [cloud cost metrics](https://docs.datadoghq.com/cloud_cost_management) or observability metrics.

The following table contains a non-exhaustive list of out-of-the-box tags associated with each SaaS Cost integration.

{% tab title="Snowflake" %}

| Tag Name             | Tag Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `account_locator`    | Locator for the account where the usage was consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| `account_name`       | Name of the account where the usage was consumed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `balance_source`     | Source of the funds used to pay for the daily usage. The source can be one of the following:- capacity: Usage paid with credits remaining on an organization's capacity commitment.- rollover: Usage paid with rollover credits. When an organization renews a capacity commitment, unused credits are added to the balance of the new contract as rollover credits.- free usage: Usage covered by the free credits provided to the organization.- overage: Usage that was paid at on-demand pricing, which occurs when an organization has exhausted its capacity, rollover, and free credits.- rebate: Usage covered by the credits awarded to the organization when it shared data with another organization.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `billing_type`       | Indicates what is being charged or credited. Possible billing types include:- consumption: Usage associated with compute credits, storage costs, and data transfer costs.- rebate: Usage covered by the credits awarded to the organization when it shared data with another organization.- priority support: Charges for priority support services. This charge is associated with a stipulation in a contract, not with an account.- vps_deployment_fee: Charges for a Virtual Private Snowflake deployment.- support_credit: Snowflake Support credited the account to reverse charges attributed to an issue in Snowflake.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `charge_description` | A description of the cost type associated with distinct line items. Descriptions differ for each cost type, represented by the `servicename` tag.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `contract_number`    | Snowflake contract number for the organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `database_name`      | Name of the database in which the query was executed (if applicable). Only found for query attribution costs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| `organization_name`  | Name of the organization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| `query_hash`         | Unique hash representing a parameterized version of the query for attribution purposes. Only found for query attribution costs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| `query_hash_version` | Version of the Snowflake query hash algorithm used to generate `query_hash`. Only found for query attribution costs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| `rating_type`        | Indicates how the usage in the record is rated, or priced. Possible values include:- compute- data_transfer- storage- Other                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| `region`             | Name of the region where the account is located.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `service_level`      | Service level (edition) of the Snowflake account (Standard, Enterprise, or Business Critical).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `servicename`        | Type of usage. Possible service types include:- automatic_clustering: Refer to Automatic Clustering.- data_transfer: Refer to Understanding data transfer cost.- logging: Refer to Logging and Tracing Overview.- materialized_view: Refer to Working with Materialized Views.- replication: Refer to Introduction to replication and failover across multiple accounts.- query_acceleration: Refer to Using the Query Acceleration Service.- search_optimization: Refer to Search Optimization Service.- serverless_task: Refer to Introduction to tasks.- snowpipe: Refer to Snowpipe.- snowpipe_streaming: Refer to Snowpipe Streaming.- storage: Refer to Understanding storage cost.- warehouse_metering_query_attribution: Refer to Virtual warehouse credit usage of queries with an execution time of 100ms or greater. Does not indicate usage of serverless or cloud services compute.- warehouse_metering_query_attribution: Refer to Virtual warehouse credit usage of queries with execution time of 100ms or less, as well as idle warehouse time. Does not indicate usage of serverless or cloud services compute. |
| `user_name`          | Name of the user or service account associated with the query.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| `warehouse_id`       | Identifier for the warehouse generating the cost.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `warehouse_name`     | Name of the warehouse associated with this usage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| `warehouse_size`     | Size of the warehouse (for example, Large, Medium).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

{% /tab %}

{% tab title="Databricks" %}
**Note**: The Databricks cost integration calculates costs using list prices and usage data. It does not reflect any negotiated or discounted rates.

| Tag Name                 | Tag Description                                                                                                              |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| `account_id`             | ID of the account this report was generated for.                                                                             |
| `billing_origin_product` | Product or feature originating the billing event (for example, JOBS, CLUSTERS).                                              |
| `central_clean_room_id`  | ID of the central clean room associated with the workload (if applicable).                                                   |
| `charge_description`     | A combination of the cloud type and name of the associated SKU (for example, AWS - PREMIUM_ALL_PURPOSE_COMPUTE).             |
| `cloud`                  | Cloud this usage is relevant for. Possible values are AWS, AZURE, and GCP.                                                   |
| `cluster_id`             | ID of the cluster associated with this usage.                                                                                |
| `custom_tags`            | Custom tags applied to the usage, usually as key-value pairs for additional metadata or categorization.                      |
| `destination_region`     | Region where the workload is directed (if applicable).                                                                       |
| `dlt_maintenance_id`     | Maintenance ID for Delta Live Tables (if applicable).                                                                        |
| `dlt_pipeline_id`        | ID of the Delta Live Tables pipeline (if applicable).                                                                        |
| `dlt_tier`               | Tier of Delta Live Tables service (if applicable).                                                                           |
| `dlt_update_id`          | Delta Live Table update ID associated with this usage (if applicable).                                                       |
| `endpoint_id`            | ID of the endpoint for SQL-based or serving-related usage (if applicable).                                                   |
| `endpoint_name`          | Name of the SQL or serving endpoint (if applicable).                                                                         |
| `instance_pool_id`       | ID of the instance pool used (if applicable).                                                                                |
| `is_photon`              | Indicates whether Photon processing was used (`true` or `false`).                                                            |
| `is_serverless`          | Indicates if the usage pertains to a serverless compute resource (`true` or `false`).                                        |
| `job_id`                 | Unique identifier for the job in Databricks.                                                                                 |
| `job_name`               | Name of the job in Databricks (if applicable).                                                                               |
| `job_run_id`             | Identifier for the specific job run (if applicable).                                                                         |
| `jobs_tier`              | Tier of the job, such as `CLASSIC` or `PREMIUM`.                                                                             |
| `networking`             | Type of networking used for this job, if specified.                                                                          |
| `node_type`              | Type of node used in this billing record (for example, m5d.large).                                                           |
| `notebook_id`            | ID of the notebook used in this billing record (if applicable).                                                              |
| `notebook_path`          | Path to the notebook in Databricks (if applicable).                                                                          |
| `record_id`              | Unique ID for this record.                                                                                                   |
| `run_name`               | Name of the current job or workflow run (if applicable).                                                                     |
| `serving_type`           | Type of serving model used, if applicable (for example, Model Serving).                                                      |
| `source_region`          | Originating region for this billing record (if applicable).                                                                  |
| `sql_tier`               | SQL tier associated with the usage (if applicable).                                                                          |
| `usage_metadata`         | Metadata related to the usage, which might include details like usage type, service category, or other relevant information. |
| `usage_type`             | Type of usage being billed (for example, COMPUTE_TIME).                                                                      |
| `warehouse_id`           | ID of the SQL warehouse (if applicable).                                                                                     |
| `workspace_id`           | ID of the Workspace this usage was associated with.                                                                          |

{% /tab %}

{% tab title="OpenAI" %}

| Tag Name             | Tag Description                                                   |
| -------------------- | ----------------------------------------------------------------- |
| `charge_description` | The name of the model whose costs are associated with the charge. |
| `organization_id`    | The unique identifier of the organization.                        |
| `organization_name`  | The name of the organization.                                     |
| `project_id`         | The unique identifier of the project.                             |
| `project_name`       | The name of the project.                                          |

{% /tab %}

{% tab title="Anthropic" %}

| Tag Name                 | Tag Description                                                                                              |
| ------------------------ | ------------------------------------------------------------------------------------------------------------ |
| `workspace_id`           | The unique identifier of the Anthropic workspace.                                                            |
| `workspace_name`         | A tag-normalized version of the workspace name.                                                              |
| `display_workspace_name` | The unaltered name of the workspace.                                                                         |
| `org_id`                 | The unique identifier of the Anthropic organization.                                                         |
| `org_name`               | A tag-normalized version of the Anthropic organization's name.                                               |
| `display_org_name`       | The unaltered name of the organization.                                                                      |
| `model_id`               | The canonical Anthropic model identifier (for example, `claude-3-opus-20240229`).                            |
| `model`                  | An alias for `model_id`, provided for compatibility and consistency with usage and metrics.                  |
| `model_name`             | The friendly name of the model (for example, `Claude 3 Opus`).                                               |
| `service_tier`           | The Anthropic service plan or tier associated with the usage (for example, `standard`, `pro`, `enterprise`). |
| `token_type`             | The category of tokens consumed.                                                                             |
| `context_window`         | The context window size for the tokens (for example, `tier_0-200k`).                                         |

{% /tab %}

{% tab title="GitHub" %}
**Note**: The GitHub cost integration estimates costs based on list prices and usage data, and includes discount values when available. It does not account for any negotiated rates.

| Tag Name             | Tag Description                                                |
| -------------------- | -------------------------------------------------------------- |
| `enterprise_name`    | Alphanumeric string identifying the GitHub enterprise account. |
| `charge_description` | The description of the charge.                                 |
| `product`            | The product of usage, for example "actions" or "storage".      |
| `organization_name`  | The GitHub organization.                                       |
| `repository_name`    | The GitHub repository.                                         |
| `billing_currency`   | The billing currency, for example "USD".                       |
| `discount`           | If the cost item is a discount.                                |

{% /tab %}

{% tab title="Confluent Cloud" %}

| Tag Name              | Tag Description                                                                                                                                                                                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `charge_description`  | The subtype of the cost (for example, KAFKA_NETWORK_WRITE).                                                                                                                                                                                             |
| `environment_id`      | The unique identifier for the environment.                                                                                                                                                                                                              |
| `network_access_type` | Network access type for the cluster. Possible values are `INTERNET`, `TRANSIT_GATEWAY`, `PRIVATE_LINK`, and `PEERED_VPC`.                                                                                                                               |
| `product`             | Product name. Possible values include `KAFKA`, `CONNECT`, `KSQL`, `AUDIT_LOG`, `STREAM_GOVERNANCE`, `CLUSTER_LINK`, `CUSTOM_CONNECT`, `FLINK`, `SUPPORT_CLOUD_BASIC`, `SUPPORT_CLOUD_DEVELOPER`, `SUPPORT_CLOUD_BUSINESS`, and `SUPPORT_CLOUD_PREMIER`. |
| `resource_id`         | The unique identifier of the Confluent resource.                                                                                                                                                                                                        |
| `resource_name`       | The name of the Confluent resource.                                                                                                                                                                                                                     |

{% /tab %}

{% tab title="Elastic Cloud" %}

| Tag Name             | Tag Description                                      |
| -------------------- | ---------------------------------------------------- |
| `charge_description` | The SKU of a charge.                                 |
| `kind`               | The type of resource.                                |
| `name`               | The unique identifier of the Elastic Cloud resource. |
| `price_per_hour`     | The cost of the Elastic Cloud resource per hour.     |

{% /tab %}

{% tab title="MongoDB" %}

| Tag Name             | Tag Description                                                      |
| -------------------- | -------------------------------------------------------------------- |
| `charge_description` | The description of a charge.                                         |
| `cluster_name`       | The name of the cluster that incurred the charge.                    |
| `group_id`           | ID of the project with which the line item is associated.            |
| `invoice_id`         | The unique identifier of the invoice.                                |
| `mongo_org_id`       | MongoDB organization ID.                                             |
| `replica_set_name`   | Name of the replica set with which the line item is associated.      |
| `resource_tags`      | Arbitrary tags on clusters set by users, usually as key-value pairs. |
| `status`             | State of the payment.                                                |

{% /tab %}

{% tab title="Fastly" %}

| Tag Name             | Tag Description                                                                         |
| -------------------- | --------------------------------------------------------------------------------------- |
| `charge_description` | The description of the charge.                                                          |
| `credit_coupon_code` | Code of any coupon or credit applied to this cost entry (if available).                 |
| `plan_name`          | Name of the plan under which this service falls, often matching "product_line".         |
| `product_name`       | Name of the specific product being billed (for example, "North America Bandwidth").     |
| `product_group`      | Group or category of the product, such as "Full Site Delivery".                         |
| `product_line`       | Line of products to which this item belongs, for example, "Network Services".           |
| `region`             | Region where the service usage occurred (for example, "North America").                 |
| `service_name`       | Name of the service associated with this cost entry, often matching the `product_name`. |
| `usage_type`         | Type of usage being billed (for example, "Bandwidth").                                  |
| `usage_type_cd`      | Code or label representing the type of usage, such as "North America Bandwidth".        |

{% /tab %}

{% tab title="Twilio" %}

| Tag Name             | Tag Description                                                                      |
| -------------------- | ------------------------------------------------------------------------------------ |
| `account_sid`        | Alphanumeric string identifying the Twilio account.                                  |
| `category`           | The category of usage. For more information, see Usage Categories.                   |
| `charge_description` | The description of the charge.                                                       |
| `count_unit`         | The units in which count is measured, such as calls for calls or messages for SMS.   |
| `usage_unit`         | The units in which usage is measured, such as minutes for calls or messages for SMS. |

{% /tab %}

## Further reading{% #further-reading %}

- [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/)
- [Gain insights into your AWS bill](https://docs.datadoghq.com/cloud_cost_management/setup/aws)
- [Gain insights into your Azure bill](https://docs.datadoghq.com/cloud_cost_management/setup/azure)
- [Gain insights into your Google Cloud bill](https://docs.datadoghq.com/cloud_cost_management/setup/google_cloud)
- [Gain insights into your Oracle bill](https://docs.datadoghq.com/cloud_cost_management/setup/oracle)
- [Gain insights into your custom costs](https://docs.datadoghq.com/cloud_cost_management/setup/custom)
- [Quickly and comprehensively analyze the cloud and SaaS costs behind your services](https://www.datadoghq.com/blog/total-cost-of-service-ownership-ccm/)
