---
title: Cloud Cost Monitor
description: >-
  Monitor cost changes, thresholds, forecasts, and anomalies in your cloud
  costs, including real-time AI and cloud compute cost increases.
breadcrumbs: Docs > Monitors > Monitor Types > Cloud Cost Monitor
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Cloud Cost Monitor

## Overview{% #overview %}

Cloud Cost Monitors help you proactively identify cost changes, and understand if you're projected to go over budget, so you can investigate the cause.

- Instantly view all your cost monitors and filter or search by team, service, tag, provider, or alert status.
- See a summary of how many monitors are set up, which are alerting, and what areas of cloud spend are tracked.
- Create new cost monitors using templates and take action on monitors that need attention.

In order to configure Cloud Cost monitors, you need to have [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md) set up.

Choose the setup that matches the cost data you want to alert on:

- Create a monitor for changes, thresholds, forecasts, budgets, and finalized cost anomalies. These monitors use finalized billing data, a 30-minute evaluation frequency, and a 48-hour delayed evaluation window, since billing data may not be available until 48 hours after usage. For example, a 7-day lookback evaluated on January 15 examines cost data from January 6 to January 13.
- Create a real-time anomaly monitor to alert within 15 minutes when estimated AI cost (from [Agent Observability](https://docs.datadoghq.com/llm_observability.md)) or estimated cloud compute cost (from [Real-Time Costs](https://docs.datadoghq.com/cloud_cost_management/cost_changes/real_time_costs.md)) increases unexpectedly.

## Create a monitor{% #create-a-monitor %}

This procedure covers Cloud Cost monitors that use finalized billing data: changes, thresholds, forecasts, budgets, and finalized anomaly monitors. To alert on estimated AI or cloud compute cost within 15 minutes, see the Create a real-time anomaly monitor section.

To create a Cloud Cost monitor in Datadog, navigate to [Cloud Cost > Analyze > Cost Monitors](https://app.datadoghq.com/cost/analyze/monitors) and click + New Cost Monitor.

Alternatively, you can set one up from [Monitors > New Monitor > Cloud Cost](https://app.datadoghq.com/monitors/create/cost), the main navigation, the [Cloud Cost Explorer](https://app.datadoghq.com/cost/explorer), or through [Terraform](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/monitor).

{% image
   source="https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-create-new.bb2d6d2ed56f8cb34720830ed040b61d.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-create-new.bb2d6d2ed56f8cb34720830ed040b61d.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The Create Monitor button on the Cost Monitor page" /%}

### Select a cost monitor type{% #select-a-cost-monitor-type %}

You can select from the following monitor types:

| Monitor Type | Cost Metric-based | Purpose                                                                                                                                                                                                                                                                                        | Example                                                                                                                                                                             |
| ------------ | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Changes      | Yes               | Detect daily, weekly, or monthly cost changes.                                                                                                                                                                                                                                                 | Alert when the difference between today's cost and the week before is over 5%.                                                                                                      |
| Anomalies    | Yes               | Identify unusual or unexpected cost patterns.Finalized monitors exclude incomplete days and require at least 1 month of cloud cost data, because historical data is required to train the algorithm. Real-time anomaly monitors alert on estimated AI or cloud compute cost within 15 minutes. | Alert if 3 days from the past 30 days show significant cost anomalies compared to historical data, or alert within 15 minutes when AI or cloud compute cost increases unexpectedly. |
| Threshold    | Yes               | Alert when costs exceed a set value.                                                                                                                                                                                                                                                           | Set alerts when today's total cost exceeds $10,000.                                                                                                                                 |
| Forecast     | Yes               | Alert if forecasted costs exceeds a threshold.                                                                                                                                                                                                                                                 | Alert daily if the forecasted cost for this month is projected to exceed $500.                                                                                                      |
| Budget       | No                | Alert if actual or [forecasted](https://docs.datadoghq.com/cloud_cost_management/planning/forecasting.md) costs exceed your [budget](https://docs.datadoghq.com/cloud_cost_management/planning/budgets.md).                                                                                    | Alert if the forecasted month cost is projected to exceed 90% of the assigned $10,000 budget.                                                                                       |

### Specify which cost to track{% #specify-which-cost-to-track %}

{% tab title="Cost metric-based" %}
Any cost type or metric reporting to Datadog is available for monitors. You can use custom metrics or observability metrics alongside a cost metric to monitor unit economics.

| Step                     | Required | Default           | Example                 |
| ------------------------ | -------- | ----------------- | ----------------------- |
| Select the cost metric   | Yes      | All providers     | `azure.cost.actual`     |
| Define the `filter by`   | No       | Nothing           | `aws_product:s3`        |
| Group by                 | No       | Nothing           | `aws_availability_zone` |
| Add observability metric | No       | `system.cpu.user` | `aws.s3.all_requests`   |

Use the editor to define the cost types or exports.

{% image
   source="https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-specify-cost.9df887db78dd586476ba26ee7ed0d97c.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-specify-cost.9df887db78dd586476ba26ee7ed0d97c.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Cloud Cost and Metrics data source options for specifying which costs to track" /%}

{% /tab %}

{% tab title="Budget-based" %}
Select an existing budget to monitor from the dropdown.

{% image
   source="https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/budget-monitor-select-budget.8b414b5d93dcf7ffad65bb50e33ac737.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/budget-monitor-select-budget.8b414b5d93dcf7ffad65bb50e33ac737.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="Dropdown for specifying which budget to track cost against" /%}

{% /tab %}

For more information, see the [Cloud Cost Management documentation](https://docs.datadoghq.com/cloud_cost_management.md).

### Set alert conditions{% #set-alert-conditions %}

{% tab title="Changes" %}
If you are using the Cost Changes monitor type, you can trigger an alert when the cost `increases` or `decreases` more than the defined threshold. The threshold can be set to either a Percentage Change or set to Dollar Amount.

If you are using the Percentage Change, you can filter out changes that are below a certain dollar threshold. For example, the monitor alerts when there is a cost change above 5% for any change that is above $500.
{% /tab %}

{% tab title="Anomalies" %}
These conditions apply when Alert on is finalized. To alert on estimated AI or cloud compute cost within 15 minutes, see the Create a real-time anomaly monitor section.

For the Cost Anomalies monitor type, you can trigger an alert if the observed cost is `above`, `below`, or `above or below` a threshold compared to historical data.

The `agile` [anomaly algorithm](https://docs.datadoghq.com/dashboards/functions/algorithms.md) is used with two bounds and monthly seasonality.
{% /tab %}

{% tab title="Threshold" %}
If you are using the Cost Threshold monitor type, you can trigger an alert when the cloud cost is `above`, `below`, `above or equal`, or `below or equal to` a threshold.
{% /tab %}

{% tab title="Forecast" %}
If you are using the Cost Forecast monitor type, you can trigger an alert when the cloud cost is `above`, `below`, `above or equal`, `below or equal to`, `equal to`, or `not equal to` a threshold.
{% /tab %}

{% tab title="Budget" %}
If you are using the Budget monitor type, you can trigger an alert when the actual or the forecasted cloud cost exceeds a percentage of the budget you selected in the previous step.

| Step             | Purpose                                                                           | Values                            |
| ---------------- | --------------------------------------------------------------------------------- | --------------------------------- |
| Evaluation basis | Whether the monitor compares actual spend or forecasted spend against the budget. | `actual`, `forecasted`            |
| Granularity      | Level of detail at which the cost is evaluated.                                   | `overall` (total cost), `per_row` |
| Threshold        | Percentage of budget that is utilized to trigger the alert.                       | Number between 0 and 100 (%)      |
| Timeframe        | Evaluation window used to assess if the threshold is breached.                    | `all_months`, `current_month`     |

When you select is forecasted to reach, the monitor uses the same [forecasting model](https://docs.datadoghq.com/cloud_cost_management/planning/forecasting.md) as budget cards and the budget status page.
{% /tab %}
 
### Configure notifications and automations{% #configure-notifications-and-automations %}

For detailed instructions on the Configure notifications and automations section, see the [Notifications](https://docs.datadoghq.com/monitors/notify.md) page.

### Define permissions and audit notifications{% #define-permissions-and-audit-notifications %}

Choose which teams, roles, users, or service accounts are allowed to **view** or **edit** the monitor. By default, all members of your organization have access.

You can also turn on Audit Notifications to alert the monitor creator and recipients whenever the monitor is changed.



## Create a real-time anomaly monitor{% #create-a-real-time-anomaly-monitor %}

Real-time anomaly monitors detect unexpected increases in estimated cost and alert within 15 minutes, before the cost appears in your billing data. Datadog identifies anomalies from a rolling 8-hour evaluation window of estimated cost.

Real-time anomaly monitors support two cost types:

| Cost type         | Providers                                                                 | Estimated cost source                                                                                                                                                                                                                 |
| ----------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AI cost           | OpenAI, Anthropic, Amazon Bedrock, Gemini, Vertex AI                      | [Agent Observability](https://docs.datadoghq.com/llm_observability.md) ([`ml_obs.span.llm.total.cost`](https://docs.datadoghq.com/llm_observability/investigate/metrics.md))                                                          |
| Cloud / SaaS cost | AWS (Amazon EC2), Azure (Virtual Machines), Google Cloud (Compute Engine) | [Real-Time Costs](https://docs.datadoghq.com/cloud_cost_management/cost_changes/real_time_costs.md) (`aws.cost.net.amortized.realtime.estimated`, `azure.cost.amortized.realtime.estimated`, `gcp.cost.amortized.realtime.estimated`) |

To set up real-time anomaly notifications for your whole organization from a single form, see [Real-time anomaly notifications](https://docs.datadoghq.com/cloud_cost_management/cost_changes/anomalies.md#real-time-anomaly-notifications). Create a monitor instead when you need a custom notification message or more than one configuration per provider.

### Prerequisites{% #prerequisites %}

Real-time anomaly monitors require:

- Estimated cost data for the cost type you want to monitor:
  - **AI cost**: LLM cost data from [Agent Observability](https://docs.datadoghq.com/llm_observability.md). Datadog estimates cost from token counts and provider pricing. See [Agent Observability costs](https://docs.datadoghq.com/llm_observability/investigate/cost.md).
  - **Cloud compute cost**: [Real-Time Costs](https://docs.datadoghq.com/cloud_cost_management/cost_changes/real_time_costs.md) set up for the provider, including the Datadog Agent on your instances. See the [Real-Time Costs requirements](https://docs.datadoghq.com/cloud_cost_management/cost_changes/real_time_costs.md#requirements).
- At least 3 days of cost data. Datadog recommends 21 days for better detection quality.

The real time option appears after any real-time metric reports. Each cloud provider appears in the Scope to list after its own metric reports.

### Configure the monitor{% #configure-the-monitor %}

1. Navigate to [Cloud Cost > Analyze > Cost Monitors](https://app.datadoghq.com/cost/analyze/monitors) and click + New Cost Monitor.
1. Select Cost Anomalies.
1. Set Alert on to real time, then select the cost type: AI cost or Cloud / SaaS cost.
1. Scope the monitor:
   - For AI cost, optionally select Providers. By default, the monitor covers all AI providers, including any that your organization starts using later.
   - For Cloud / SaaS cost, select AWS, Azure, or Google Cloud in Scope to.
1. Optionally, filter the cost with Filter cost to, and group by up to two tags with Detect anomalies on.
1. Set the minimum cost impact. The monitor alerts only when Datadog detects an anomaly and the anomaly cost over the next 24 hours is likely to exceed the higher of:
   - An amount in your organization's currency: a whole number greater than 0 (default: 500)
   - A percentage of the baseline cost: 0-100% (default: 5%)
1. [Configure notifications](https://docs.datadoghq.com/monitors/notify.md).

To monitor finalized cloud billing data instead, set Alert on to finalized and follow Create a monitor. Finalized anomaly monitors use the agile anomaly algorithm, exclude incomplete days, and require at least 1 month of cloud cost history.

## Other actions you can take{% #other-actions-you-can-take %}

{% image
   source="https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-other-actions.23ac160a6560bc5fb776e6ab720dd1f8.png?auto=format&fit=max&w=850 1x, https://docs.dd-static.net/images/monitors/monitor_types/cloud_cost/cost-monitors-other-actions.23ac160a6560bc5fb776e6ab720dd1f8.png?auto=format&fit=max&w=850&dpr=2 2x"
   alt="The actions menu open with options to view the monitor in the Cloud Cost Explorer, as well as options to edit, clone, and delete the monitor." /%}

- View in Monitors to see your monitor's alert history, adjust visualizations, and review how often it has triggered alerts.
- View in Explorer to open the monitor in the Cloud Cost Explorer for deeper analysis.
- Edit a monitor to update the monitor's settings or configuration.
- Clone a monitor to create a copy of an existing monitor by choosing Actions > Clone.
- Delete a monitor to permanently remove a monitor you no longer need.

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

Additional helpful documentation, links, and articles:

- [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management.md?tab=aws#overview)
- [Configure your monitor notifications](https://docs.datadoghq.com/monitors/notify.md)
- [Schedule a downtime to mute a monitor](https://docs.datadoghq.com/monitors/downtimes.md)
- [Consult your monitor status](https://docs.datadoghq.com/monitors/status.md)
- [Manage and optimize your OCI costs with Datadog Cloud Cost Management](https://www.datadoghq.com/blog/cloud-cost-management-oci)
- [React quickly to cost overruns with Cost Monitors for Datadog Cloud Cost Management](https://www.datadoghq.com/blog/ccm-cost-monitors/)
- [Empower engineers to take ownership of Google Cloud costs with Datadog](https://www.datadoghq.com/blog/google-cloud-cost-management/)
- [How Kubernetes DRA can improve GPU utilization and cut costs](https://www.datadoghq.com/blog/how-kubernetes-dra-can-improve-gpu-utilization-and-cut-costs/)
