Find your Snowflake account URL.
Navigate to the Snowflake integration tile in Datadog and click Add Snowflake Account.
Enter your Snowflake account URL in the Account URL field. For example: https://xyz12345.us-east-1.snowflakecomputing.com.
Under the Connect your Snowflake account section, click the toggle to enable Snowflake in Cloud Cost Management.
Enter your Snowflake user name in the User Name field.
Follow step 4 of the Snowflake integration page to create a Datadog-specific role and user to monitor Snowflake.
Follow step 5 of the Snowflake integration page to configure the key-value pair authentication.
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 are powerful metadata strings that can be associated with queries. The Snowflake Cost Management integration ingests JSON parsable 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"}';
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.
Notes:
- Navigate to the Databricks integration tile in Datadog and click Configure.
- Enter the workspace name, url, client ID, and client secret corresponding to your Databricks service principal.
- Under the Select products to set up integration section, click the toggle for each account to enable Databricks
Cloud Cost Management. - Enter a
System Tables SQL Warehouse ID corresponding to your Databricks instance’s warehouse to query for system table billing data. - Click Save Databricks Workspace.
Your service principal requires read access to the system tables within Unity Catalog. In Databricks, open the SQL Editor and run the following commands, using the service principal’s client ID (not its display name):
GRANT USE CATALOG ON CATALOG system TO `<CLIENT-ID>`;
GRANT USE SCHEMA ON CATALOG system TO `<CLIENT-ID>`;
GRANT SELECT ON CATALOG system TO `<CLIENT-ID>`;
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.
An admin-scoped API key is required to collect OpenAI cost data for Cloud Cost Management. Project-scoped API keys cannot collect cost data.
- Create an admin API key in your OpenAI account settings:
- Log in to your OpenAI Account.
- Navigate to the Admin Keys page 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.
- Navigate to the OpenAI integration tile in Datadog and click Add Account.
- Enter your OpenAI account name, input your admin API key, and optionally, specify tags.
- Under the Resources section, click the toggle for each account to enable
OpenAI Billing Usage Data Collection. - 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.
1. Generate an Admin API key
Begin by getting an Admin API key from Anthropic. This key allows access to usage and cost reports across your organization.
- Navigate to your organization’s settings or reach out to your Anthropic account admin to create a new Admin API key.
- Copy the API key to a secure location.
- In Datadog, go to Integrations > Anthropic Usage and Costs.
- On the Configure tab, under Account details, paste in the Admin API Key from Anthropic.
- Click Save.
After you save your configuration, Datadog begins polling Anthropic usage and cost endpoints using this key, and populates metrics in your environment.
Note: To track costs for both Anthropic Enterprise and platform accounts, repeat the setup steps to add a separate account entry for each API key type. Use the Admin API key for standard platform usage, and the Enterprise Analytics API key for Anthropic Enterprise usage.
ChatGPT Enterprise cost monitoring is in Preview. Datadog does not charge for this integration during Preview. Credit-priced usage is shown as estimated USD costs, which can differ from final OpenAI bills.
1. Create a Costs-only admin API key
Use a ChatGPT Enterprise workspace with access to OpenAI’s Costs API. A workspace owner or admin must create the key.
- Open the ChatGPT Admin Console and select the ChatGPT Enterprise workspace.
- Navigate to Credentials > Admin keys > Create new admin key.
- If you are a workspace owner, select Custom permissions. Set Costs to Read and leave the other permission categories set to None.
- Create the key and copy its secret to a secure location.
Create this key in the ChatGPT Admin Console, not the OpenAI API Platform admin-key console. For details, see the ChatGPT Enterprise integration setup.
- In Datadog, open the ChatGPT Enterprise integration tile.
- Select Install, open Configure, and select Add Account.
- Enter an Account name, the ChatGPT Enterprise Admin API Key, and the OpenAI Organization ID.
- Enable Cloud Cost Management data collection for the account and save the configuration.
The organization ID must be the org-... ID used by the Costs API for the workspace’s Enterprise usage. Do not enter a ChatGPT workspace UUID or a Datadog organization ID. If you do not know the organization ID, contact your workspace owner or OpenAI support.
When you enable Cloud Cost Management, Datadog collects up to 30 days of available historical costs. Subsequent collection runs hourly. Recent usage can appear later because of OpenAI reporting delays and Datadog processing.
After cost data is collected, open Cloud Cost Management Providers to check the account. Then select ChatGPT Enterprise on the AI cost summary page. OpenAI API Platform costs use the separate OpenAI integration.
Cost reporting
ChatGPT Enterprise reports usage across ChatGPT Chat, ChatGPT Work, and Codex. For credit-priced usage, Cloud Cost Management includes OpenAI’s estimated USD amount in cost totals, rather than the number of credits consumed. For usage billed directly in USD, it includes the reported USD amount. These usage costs may differ from final invoice amounts.
Model and user breakdowns depend on the fields OpenAI provides. For the available dimensions, see Data collected.
An Enterprise plan and team admin role are required to generate a Cursor Admin API key. Standard team plan accounts return access denied errors.
1. Generate an Admin API key
Begin by getting an Admin API key from Cursor. This key allows access to usage and cost reports across your team.
- In the Cursor dashboard, navigate to Settings > Advanced > Admin API Keys.
- Create a new Admin API key and copy it to a secure location.
- In Datadog, go to Integrations > Cursor.
- On the Configure tab, under Account details, paste in the Admin API Key from Cursor.
- Under the Resources section, click the toggle for each account to enable
Cursor in Cloud Cost Management. - Click Save.
After you save your configuration, Datadog begins polling Cursor usage and cost endpoints using this key, and populates metrics in your environment. Your Cursor 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.
A service account with the Finance Admin or Account Owner role is required to generate a Temporal Cloud Billing API key. The Metrics Read-Only and Account Admin roles cannot access the Billing API.
1. Generate a Billing API key
- In Temporal Cloud, navigate to Settings > Service Accounts > Create Service Account.
- Assign the service account the Finance Admin or Account Owner role.
- Generate an API key for the service account and copy it to a secure location. Temporal Cloud only shows the key once.
- In Datadog, go to Integrations > Temporal Cloud Cost Management.
- Click Install Integration, then click Configure.
- Click Add Account and paste in the Billing API key from Temporal Cloud.
- Click Save.
After you save your configuration, Datadog begins polling the Temporal Cloud Billing API using this key, and populates metrics in your environment. Your Temporal Cloud cost data can be accessed in Cloud Cost Management within 25-30 hours. To access the available data collected by each SaaS Cost Integration, see the Data Collected section.
- Create a personal authorization token (classic), with the
manage_billing:enterprise and read:org scopes on the Personal Access Tokens page in GitHub. - Navigate to the Datadog GitHub Costs tile.
- Click Add New.
- Enter an account name, your personal access token, and your enterprise name (in
enterprise-name format), as well as any appropriate tags. - 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.
- Create or acquire an API key with the billing admin role in Confluent Cloud.
- Navigate to the Confluent Cloud integration tile in Datadog and click Add Account.
- Enter your Confluent Cloud account name, API key, API secret, and optionally, specify tags.
- Under the Resources section, click the toggle for Collect cost data to view in Cloud Cost Management.
- 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 for more information.
- Create an API token in MongoDB with
Organizational Billing Viewer permissions, and add Organizational Read Only permissions for cluster resource tags. - Navigate to the MongoDB Cost Management integration tile in Datadog and click Add New.
- Enter your MongoDB account name, public key, private key, organizational ID, and optionally, specify tags.
- 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.
- Go to the API Key section in your Elastic Cloud organization’s settings.
- Click Create New Key.
- Choose a Name and Expiration Date for your API key.
- Select the Billing Admin role.
- Click Create Key to generate the key.
- Go to the Elastic Cloud integration tile in Datadog
- Click Add Account.
- 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.
- Create an API token with at least the
"global:read" scope and "Billing" role on the Personal API tokens page in Fastly. - Navigate to the Fastly cost management integration tile in Datadog and click Add New.
- Enter your Fastly account name and API token.
- 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.
- Navigate to the Twilio integration tile in Datadog and click Add Account.
- Under the Resources section, click the toggle for each account to enable
Twilio in Cloud Cost Management. - Enter an Account SID for your Twilio account.
- 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.