- Navigate to the Databricks integration tile in Datadog and click Configure.
- Enter the workspace name, url, and access token corresponding to your Databricks account.
- 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 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.
- 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.
Navigate to the Snowflake integration tile in Datadog and click Add Snowflake Account.
Enter your Snowflake account URL, 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.
Create a Datadog-specific role and user to monitor Snowflake.
Run the following in Snowflake to create a custom role:
-- Create a new role intended to monitor Snowflake usage.
create role DATADOG;
-- Grant privileges on the SNOWFLAKE database to the new role.
grant imported privileges on database SNOWFLAKE to role DATADOG;
-- Grant usage to your default warehouse to the role DATADOG.
grant usage on warehouse <WAREHOUSE> to role DATADOG;
-- If you have cost usage collection enabled, ensure that your credentials have permission to view the ORGANIZATION_USAGE schema.
grant database role SNOWFLAKE.ORGANIZATION_USAGE_VIEWER to role DATADOG;
-- Note that the account in which you are creating the Datadog role and user must have OrgAdmin enabled. If the account does not have OrgAdmin, the Datadog role will be unable to access organization usage data used to calculate costs.
-- Create a user.
create user DATADOG_USER
LOGIN_NAME = DATADOG_USER
password = <PASSWORD>
default_warehouse = <WAREHOUSE>
default_role = DATADOG
-- Grant the monitor role to the user.
grant role DATADOG to user <USER>
Configure the key-value pair authentication:
Click Save.
Your Snowflake 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.
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:
- 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 key in your account settings in OpenAI.
- Navigate to the OpenAI integration tile in Datadog and click Add Account.
- Enter your OpenAI account name, input your 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.
- 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.