Skip to main content

Datadog Usage Metric

Use Datadog integration to collect billable and usage metrics for your organization.

Configure Datadog in Spot Connect

  1. Sign in to your Datadog account.
  2. Create an API key in Datadog.
  3. Copy the API key value.
  4. Create an application key in Datadog.
  5. Copy the application key.
  6. In the Spot console, go to Connect > Settings > Integrations.
  7. Click Datadog > Add Integration.
  8. Paste the application key in Datadog Application Key.
  9. Paste the API key in Datadog API Key.
  10. Click Add Instance.

Integration Action: Hourly Usage by Product Family

  1. Set up usage metering in Datadog: Get hourly usage by product family.
  2. In the Spot console, select Connect > Workflows.
  3. Click New Workflow and enter a name for the workflow.
  4. Select Manual Trigger > Create Workflow.
  5. In the center panel of the workflow builder, click the Manual Trigger node to open the right panel.
  6. Add a Loop action, update List of Items to be 1, and click Save.
  7. Add a Datadog Usage Metering action to the Loop action.
  8. Select the Datadog Instance, Usage Category > Hourly usage by product family, Product Familes, and Start time.
  9. Click Save Workflow.

Input

ParameterDescriptionRequired
Datadog InstanceThe instance added in the integrationRequired
Usage CategoryHourly usage by product familyRequired
Product familiesThe list of product families to retrieveRequired
Start TimeDate for usage starting at a specific time, such as 2024-03-01 T06Required
End timeDate for usage ending at a specific time, such as 2024-05-01 T06Optional
Include descendantsInclude child org usage in response (true/false)Optional
S3 BucketThe S3 bucket to store the query result.Optional
S3 Bucket KeyName of S3 keyOptional
Export File NameChange the name of the S3 fileOptional

Output

ParameterTypeDescription
execution_statusStringStatus of run (such as S_OK / E_FAIL)
outputMapUsage API response
s3_urlStringURL where the data/output is saved

Integration Action: Billable Across Account

  1. Set up usage metering in Datadog: Get billable usage across your account.
  2. In the Spot console, select Connect > Workflows.
  3. Click New Workflow and enter a name for the workflow.
  4. Select Manual Trigger > Create Workflow.
  5. In the center panel of the workflow builder, click the Manual Trigger node to open the right panel.
  6. Add a Loop action, update List of Items to be 1, and click Save.
  7. Add a Datadog Usage Metering action to the Loop action.
  8. Select the Datadog Instance, Usage Category > Billable across account, and Start Month.
  9. Click Save Workflow.

Input

ParameterDescriptionRequired
Datadog InstanceThe instance added in the integrationRequired
Usage CategoryBillable across accountRequired
Start MonthDate for usage starting at a specific time, such as 2024-03-01 T06Required
S3 BucketThe S3 bucket to store the query result.Optional
S3 Bucket KeyName of S3 keyOptional
Export File NameChange the name of the S3 fileOptional

Output

ParameterTypeDescription
execution_statusStringStatus of run (such as S_OK / E_FAIL)
outputMapUsage API response
s3_urlStringURL where the data/output is saved

Integration Action: Usage Across Account

  1. Set up usage metering in Datadog: Get usage across your account.
  2. In the Spot console, select Connect > Workflows.
  3. Click New Workflow and enter a name for the workflow.
  4. Select Manual Trigger > Create Workflow.
  5. In the center panel of the workflow builder, click the Manual Trigger node to open the right panel.
  6. Add a Loop action, update List of Items to be 1, and click Save.
  7. Add a Datadog Usage Metering action to the Loop action.
  8. Select the Datadog Instance, Usage Category > Usage across account, and Start Month.
  9. Click Save Workflow.

Input

ParameterDescriptionRequired
Datadog InstanceThe instance added in the integrationRequired
Usage CategoryUsage across accountRequired
Start monthDate for usage starting at a specific time, such as 2024-03-01 T06Required
End monthDate for usage ending at a specific time, such as 2024-05-01 T06Optional
Include org detailsInclude usage summaries for each suborg (true/false)Optional
S3 BucketThe S3 bucket to store the query result.Optional
S3 Bucket KeyName of S3 keyOptional
Export File NameChange the name of the S3 fileOptional

Output

ParameterTypeDescription
execution_statusStringStatus of run (such as S_OK / E_FAIL)
outputMapUsage API response
s3_urlStringURL where the data/output is saved

Integration Action: Historical Cost Across Account

  1. Set up usage metering in Datadog: Get historical cost across your account.
  2. In the Spot console, select Connect > Workflows.
  3. Click New Workflow and enter a name for the workflow.
  4. Select Manual Trigger > Create Workflow.
  5. In the center panel of the workflow builder, click the Manual Trigger node to open the right panel.
  6. Add a Loop action, update List of Items to be 1, and click Save.
  7. Add a Datadog Usage Metering action to the Loop action.
  8. Select the Datadog Instance, Usage Category > Historical cost across account, and Start Month.
  9. Click Save Workflow.

Input

ParameterDescriptionRequired
Datadog InstanceThe instance added in the integrationRequired
Usage CategoryHistorical cost across accountRequired
Start monthDate for usage starting at a specific time, such as 2024-03-01 T06Required
End monthDate for usage ending at a specific time, such as 2024-05-01 T06Optional
Include org detailsInclude usage summaries for each suborg (true/false)Optional
S3 BucketThe S3 bucket to store the query result.Optional
S3 Bucket KeyName of S3 keyOptional
Export File NameChange the name of the S3 fileOptional

Output

ParameterTypeDescription
execution_statusStringStatus of run (such as S_OK / E_FAIL)
outputMapUsage API response
s3_urlStringURL where the data/output is saved