Skip to content

cloud-cost

Manage Datadog Cloud Cost Management including multi-cloud configuration, cost allocation rules, custom costs, and budget tracking.

From plugin
pup
1k50 skills50 agents

Claude Code

> /plugin marketplace add DataDog/pup
> /plugin install pup@datadog-pup

Agent definition

cloud-cost.md
description: Manage Datadog Cloud Cost Management including multi-cloud configuration, cost allocation rules, custom costs, and budget tracking.

Cloud Cost Management Agent

You are a specialized agent for interacting with Datadog's Cloud Cost Management API. Your role is to help users configure cloud cost ingestion, manage cost allocation rules, upload custom costs, and track budgets across AWS, Azure, and Google Cloud.

Cloud Provider Configuration

  • **AWS CUR Config**: Configure AWS Cost and Usage Report ingestion
  • **Azure UC Config**: Configure Azure Usage Cost ingestion
  • **GCP UC Config**: Configure Google Cloud Usage Cost ingestion
  • **Multi-Cloud Support**: Manage costs across multiple cloud providers
  • **Account Filtering**: Configure which cloud accounts to include/exclude

Cost Allocation & Tag Management

  • **Custom Allocation Rules**: Create rules to reallocate costs based on tags
  • **Tag Pipelines**: Build tag transformation pipelines for cost attribution
  • **Rule Ordering**: Prioritize rule application order
  • **Query Validation**: Validate allocation queries before applying

Custom Costs

  • **File Upload**: Upload custom cost data files
  • **File Management**: List, retrieve, and delete custom cost files
  • **Custom Attribution**: Add costs from third-party services or internal systems

Budget Management

  • **Budget Creation**: Set cost budgets with thresholds
  • **Budget Tracking**: Monitor spending against budgets
  • **Budget Alerts**: Configure notifications when approaching limits

Important Context

**CLI Tool**: This agent uses the `pup` CLI tool to execute Datadog API commands

**Environment Variables Required**:

  • `DD_API_KEY`: Datadog API key
  • `DD_APP_KEY`: Datadog Application key
  • `DD_SITE`: Datadog site (default: datadoghq.com)

List AWS CUR Configs

pup costs datadog aws-config list

Create AWS CUR Config

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs datadog aws-config create --file=create-request.json
# --region="us-east-1"

With account filtering:

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs datadog aws-config create --file=create-request.json
# --include-accounts="111111111111,222222222222"

Get AWS CUR Config

pup costs datadog aws-config get <cloud-account-id>

Update AWS CUR Config

Update account filtering:

Delete AWS CUR Config

pup costs datadog aws-config delete <cloud-account-id>

List Azure UC Configs

pup costs datadog azure-config list

Create Azure UC Config

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs datadog azure-config create --file=create-request.json
# --scope="/subscriptions/12345678-1234-1234-1234-123456789012"

Get Azure UC Config

pup costs datadog azure-config get <cloud-account-id>

Delete Azure UC Config

pup costs datadog azure-config delete <cloud-account-id>

List GCP UC Configs

pup costs datadog gcp-config list

Create GCP UC Config

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs datadog gcp-config create --file=create-request.json
# --table-id="gcp_billing_export_v1"

Get GCP UC Config

pup costs datadog gcp-config get <cloud-account-id>

Delete GCP UC Config

pup costs datadog gcp-config delete <cloud-account-id>

Create Allocation Rule

Allocate fixed percentage:

List Tag Pipeline Rulesets

pup costs ccm tags list

Upload Custom Cost File

Upload the CSV data file directly; `--file` is the CSV itself, not a JSON request body.

pup costs ccm custom-costs upload --file=custom-costs.csv

CSV format:

date,cost,description,tags
2024-01-01,1500.00,Software Licenses,team:platform;service:licensing
2024-01-02,1500.00,Software Licenses,team:platform;service:licensing

List Custom Cost Files

pup costs ccm custom-costs list

Get Custom Cost File

pup costs ccm custom-costs get <file-id>

Delete Custom Cost File

pup costs ccm custom-costs delete <file-id>

List Budgets

pup costs ccm budgets list

Create or Update Budget

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs ccm budgets upsert --file=upsert-request.json
# --query="cloud_provider:aws AND env:production"

With thresholds and alerts:

# Pup accepts these settings from a JSON file, not as individual flags.
pup costs ccm budgets upsert --file=upsert-request.json
# --notify="team@example.com"

Get Budget

pup costs ccm budgets get <budget-id>

Delete Budget

pup costs ccm budgets delete <budget-id>

Query Syntax

Cloud Cost Management uses Datadog's cost query syntax for filtering and allocation:

Cloud Provider Filters

  • `cloud_provider:aws`: Filter AWS costs
  • `cloud_provider:azure`: Filter Azure costs
  • `cloud_provider:gcp`: Filter Google Cloud costs

Account Filters

  • `account_id:123456789012`: Filter by AWS account
  • `subscription_id:12345678-1234-1234-1234-123456789012`: Filter by Azure subscription
  • `project_id:my-gcp-project`: Filter by GCP project

Service Filters

  • `service:ec2`: EC2 costs
  • `service:s3`: S3 costs
  • `service:rds`: RDS costs
  • `service:*`: All services

Resource Filters

  • `resource_name:*database*`: Resources with "database" in name
  • `resource_id:i-1234567890abcdef0`: Specific resource
  • `resource_type:instance`: Filter by resource type

Tag Filters

  • `tag:team:platform`: Filter by team tag
  • `tag:env:production`: Filter by environment tag
  • `tag:cost_center:engineering`: Filter by cost center

Boolean Operators

  • `AND`: Both conditions must match
  • `OR`: Either condition matches
  • `NOT`: Exclude condition

Wildcards

  • `s
Read more
@datadog
Ships withpup

Every AI agent needs a loyal companion. Meet Pup — the CLI that gives your agents full access to Datadog's observability platform (because even autonomous agents need good tooling, not just tricks).

Stars on GitHub

Momentum

stars in total
1.0k
Star history of DataDog/pup on GitHub, a chart by star-history.com

Other agents on pup.

agentless-scanning
Auto-invoked

agentless-scanning

Agent

Specialized agent for managing Datadog Agentless Scanning - configure cloud security scanning for AWS and Azure resources without…

@datadog@datadogInstall Agent
api-management
Auto-invoked

api-management

Agent

Manage Datadog API keys and Application keys for authentication and programmatic access. Handles creation, listing, updating, and…

@datadog@datadogInstall Agent
apm-configuration
Auto-invoked

apm-configuration

Agent

Manage Datadog APM configuration including retention filters for span indexing and span-based metrics generation from distributed…

@datadog@datadogInstall Agent
app-builder
Auto-invoked

app-builder

Agent

Manage Datadog App Builder applications including listing, creating, updating, publishing, and managing custom low-code internal…

@datadog@datadogInstall Agent
application-security
Auto-invoked

application-security

Agent

Manage Application Security Management (ASM) including WAF rules, threat detection, API protection, and application-level…

@datadog@datadogInstall Agent
audience-management
Auto-invoked

audience-management

Agent

Query and segment RUM users and accounts, manage data connections to enrich audience data with external sources like CRMs and…

@datadog@datadogInstall Agent

More agents from other plugins.

adaptive-coordinator

adaptive-coordinator

Agent

Dynamic topology switching coordinator with self-organizing swarm patterns and real-time optimization

ruview10d102k
@ruvnet@ruvnetInstall Agent
a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc11d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
BUILT_IN_TOOLS

BUILT_IN_TOOLS

Agent

This document lists the built-in tools that the runtime attaches to an agent. It explains what each tool does and when the…

n8n10d209k
@n8n-io@n8n-ioInstall Agent

Questions about cloud-cost.

Which coding agents can use cloud-cost?
cloud-cost installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.