Datadog Cost Optimization Guide for 2026: 15 Ways to Cut Your Bill

Ready to get started?
Try OpenObserve Cloud today for more efficient and performant observability.

Datadog cost optimization means reducing what you index, the custom metrics you create, the hosts and containers you monitor, and the APM data you keep, because those are the units Datadog bills on. The 15 tactics below target each one, using Datadog's own pricing and docs. The last sections show which tactics save the most and when switching to OpenObserve costs less.
TL;DR
- The biggest quick win on Datadog is excluding noisy logs from indexes and turning the logs you only count into log-based metrics.
- Custom metric costs drop fastest when you use Metrics without Limits to index only the tags you actually query.
- Host and APM costs fall when you right-size for Datadog's high-water mark billing and tune trace sampling per service.
- Every Datadog saving beyond removing noise also removes data, because Datadog bills on indexed events, metric cardinality, and hosts.
- OpenObserve is the long-term fix: it bills only on data ingested, with no per-host or per-custom-metric fees, and keeps all logs searchable for 30 days on OpenObserve Cloud.
Why is my Datadog bill so high?
Datadog bills each product on a different unit, so the bill grows along several dimensions at once: more hosts, more containers per host, more log events indexed, more tag combinations on custom metrics, and more spans retained. A single change, such as a new microservice, can move four of those meters at the same time. These are the main drivers on annual list prices:.
| Product. | What you pay for. | List price. |
|---|---|---|
| Infrastructure. | Each host per month. | $15 (Pro), $23 (Enterprise), billed annually. |
| APM. | Each APM host per month. | $31, billed annually. |
| Log ingestion. | Each GB ingested. | $0.10. |
| Log indexing. | Each million events indexed. | $1.70 (15-day retention), $2.50 (30-day), billed annually. |
| Custom metrics. | Each 100 indexed custom metrics beyond the allotment. | $5. |
| Indexed spans. | Each million spans beyond the allotment. | $1.70 (15-day retention), billed annually. |
| Containers. | Each container beyond the per-host allotment. | $0.002 per container hour. |
(Source: Datadog pricing list and billing docs, November 2026).
The pattern to notice: ingesting a log costs $0.10 per GB, but making it searchable costs per million events on top. At an average event size of 1 KB, 1 GB is about a million events, so indexing at 15-day retention costs 17 times as much as ingestion. The chart shows what it costs to make 1 GB of logs searchable on each option.
That gap is why most of the tactics below are about indexing less. For a full price breakdown of every Datadog product, see our Datadog pricing guide.
How to reduce Datadog log costs
Logs are usually the largest and fastest-growing line on a Datadog invoice, because indexing is billed per event and every new service adds events. The six tactics in this section all work the same way: they keep logs flowing into Datadog at the $0.10 per GB ingest rate, but index fewer of them, for less time, or in a lower-cost tier. Start with tactics 1 and 3, which remove noise without removing signal.
1. Exclude noisy logs from Datadog log indexes
Exclusion filters on a log index stop matching logs from being indexed. Excluded logs still flow through Live Tail, can be archived, and can still generate metrics. (Source: Datadog docs, Log Indexes, November 2026).
Start with the log types that are high volume and almost never searched: debug logs, Kubernetes liveness and readiness probes, health-check endpoints, and load balancer success lines. Instead of excluding a pattern completely, you can set the filter to sample between 0% and 100% of matching logs, or sample by the unique values of an attribute so you keep a few logs per user or per request type. A 10% sample of successful requests is usually enough to show that a path works, while every error stays indexed.
Before adding filters, find out which services and patterns produce the most events. Grouping logs by service and status over a week usually shows that a handful of sources account for most of the volume. For more on spotting noise, read how to filter logs at source in the OpenTelemetry Collector, which applies the same idea before data leaves your cluster.
2. Cap Datadog log indexing with daily quotas
A daily quota is a hard limit on how many logs an index stores per day. Once it's reached, logs stop being indexed but stay available in Live Tail, archives, and log-based metrics. You can set a warning threshold at 50% or more of the quota. (Source: Datadog docs, Log Indexes, November 2026).
Quotas protect you from a single misbehaving service that starts logging in a loop, which can otherwise index hundreds of millions of events in an afternoon. Split high-volume services into their own indexes with their own quotas, so one noisy service hitting its cap doesn't stop indexing for everything else. The trade-off is that logs past the quota aren't searchable in Log Explorer until you rehydrate them from an archive.
3. Turn Datadog logs into log-based metrics
If you only need a count or a rate from a log pattern (errors per minute, checkout successes, requests per status code), generate a log-based metric and exclude the logs themselves from indexing. Datadog's Logging without Limits guide recommends this so you "can still track KPIs over time at the ingest level". (Source: Datadog docs, Getting Started with Logging without Limits, November 2026).
Log-based metrics are kept as metrics rather than events, so a dashboard of request rates by endpoint no longer depends on indexing every request log. Keep the tag set on these metrics small: a log-based metric grouped by a high-cardinality attribute becomes a custom metric problem instead (see tactic 8). The same pattern works outside Datadog; our guide to logs to metrics shows it in OpenObserve.
4. Shorten Datadog log index retention
Indexing price depends on retention. On annual list prices, 15-day retention costs $1.70 per million events and 30-day retention costs $2.50, so moving an index from 30 to 15 days cuts its indexing cost by 32%. (Source: Datadog pricing list, November 2026).
Check how far back people actually search each index. Most incident investigations look at the last few hours or days, so application and access logs rarely need 30 days of indexed retention. Keep longer retention only for the indexes you search after two weeks, such as audit or security logs, and cover the rest with archives (tactic 6).
5. Move long-term Datadog logs to Flex Logs
Flex Logs separates storage from compute for logs you keep long-term but query rarely. Storage is $0.05 per million events per month on an annual plan, with compute billed separately by tier. (Source: Datadog pricing list, November 2026) Datadog recommends Flex for auditing, compliance retention, and security investigations.
Monitors and Watchdog don't run on Flex Logs, so keep alerting data in standard indexes. (Source: Datadog docs, Flex Logs, November 2026) Flex works best for logs you must keep for months for a specific reason and search a few times a quarter, not for logs your on-call team searches every day.
6. Archive Datadog logs to your own S3, GCS, or Azure bucket
Log archives forward all ingested logs, indexed or not, to Amazon S3, Azure Storage, or Google Cloud Storage as compressed JSON. (Source: Datadog docs, Log Archives, November 2026).
With an archive in place, you can exclude more aggressively, knowing you can search or rehydrate archived logs later if an investigation needs them. Rehydration indexes the archived events again, so it is billed like indexing. Plan for that cost when you set exclusion filters for logs you might need during a security review.
How much can Datadog log optimization save?
To see how these tactics add up, take a team ingesting 100 GB of logs per day (about 3,000 GB, or 3 billion 1 KB events, per month) with everything indexed for 30 days. The chart shows the monthly log bill on Datadog's annual list prices after excluding 40% of events as noise, after moving to 15-day retention, and after both, next to OpenObserve Cloud keeping all 3,000 GB searchable for 30 days.
Even after both tactics, the Datadog scenario searches 60% of the logs for half as long, and still costs more than twice as much as keeping every log searchable on OpenObserve Cloud ($0.50 per GB on an annual contract, or $0.70 per GB pay as you go, plus $0.01 per GB queried).
How to reduce Datadog custom metrics costs
Custom metrics are the line item teams understand least, because the count isn't the number of metric names you send. Datadog counts every unique combination of metric name and tag values, so one metric with a few high-cardinality tags can turn into thousands of billable custom metrics. These three tactics control that count. For background on why tag combinations multiply, read our guide to high cardinality in observability.
7. Index only the custom metric tags you query with Metrics without Limits
Datadog counts a custom metric as each unique combination of metric name and tag values, including the host tag. Metrics without Limits splits billing into ingested and indexed custom metrics, so you can keep ingesting every tag but make only the useful tag combinations queryable. (Source: Datadog docs, Custom Metrics Billing, November 2026) The price gap is large: $0.10 per 100 ingested custom metrics versus $5 per 100 indexed. (Source: Datadog pricing list, November 2026).
Start with the metrics that have the highest cardinality and allowlist only the tags used in dashboards and monitors. A metric tagged with service, env, endpoint, and pod often only needs service, env, and endpoint for every query anyone runs; dropping pod from the indexed set can cut its count by the number of pods.
8. Drop high-cardinality tags before Datadog counts them
Because every tag value creates a new custom metric, tags such as user IDs, request IDs, session IDs, or full URLs multiply your count. Remove them in your instrumentation before the metric is sent, and keep those details in logs or traces instead, where they are just fields on an event.
Also normalize values that look different but mean the same thing. A URL tag with IDs embedded in the path (/orders/18273) creates a series per order; replacing the ID with a route template (/orders/{id}) keeps the tag useful with a handful of values. Our Prometheus data cardinality post covers the same techniques for Prometheus-style metrics.
9. Stay inside Datadog's per-host custom metric allotment
Each host includes 100 indexed custom metrics on Pro and 200 on Enterprise. Datadog averages your distinct custom metrics over every hour of the month, so a short burst costs less than a permanent increase. (Source: Datadog docs, Custom Metrics Billing, November 2026).
Review your custom metric usage each month in the usage page and find the few metric names that account for most of the count. Usually a small number of metrics, often from one integration or one team's instrumentation, account for most of the overage. Fixing those few has more impact than auditing every metric.
How to reduce Datadog APM costs
APM is billed per APM host, with allotments of ingested and indexed spans per host. That makes APM costs depend on both your host count and how much trace data you ingest and keep. Two controls manage the trace side: ingestion sampling decides which traces reach Datadog, and retention filters decide which of those are indexed and searchable for 15 days.
10. Tune Datadog trace ingestion sampling
By default, the Datadog Agent sets sampling rates to target 10 traces per second per Agent. You can change that target with DD_APM_TARGET_TPS or set sampling rules per service in the tracer, locally or remotely from the Datadog UI. (Source: Datadog docs, Ingestion Controls, November 2026) Each APM host includes 150 GB of ingested spans per month; beyond that, ingestion costs $0.10 per GB. (Source: Datadog docs, APM Billing, November 2026).
Lower rates for chatty, low-value services such as health checks and internal polling, and keep higher rates for revenue-critical paths such as checkout and login. Check the ingestion reasons in Datadog's ingestion control page to see which services and sampling mechanisms produce most of your span volume before changing rates.
11. Narrow Datadog APM retention filters for indexed spans
Retention filters decide which ingested spans are indexed for 15 days. Each APM host includes 1 million indexed spans per month, and extra indexed spans cost $1.70 per million. Spans kept by the always-on Intelligent Retention Filter don't count toward indexed span usage. (Source: Datadog docs, Trace Retention and APM Billing, November 2026).
Review custom retention filters and remove any that index spans you never search. A filter that keeps 100% of spans for a busy service can exceed the per-host allotment on its own. For a side-by-side look at how trace storage differs between platforms, see Datadog vs OpenObserve for traces and APM.
How to reduce Datadog infrastructure host and container costs
Host fees are the base of every Datadog bill, and they also set your custom metric and span allotments. Two details of how hosts and containers are counted make the difference: the high-water mark that decides your monthly host count, and the per-host container allotment.
12. Right-size hosts for Datadog's high-water mark billing
Datadog meters hosts hourly and bills on the high-water mark of the lower 99% of hourly usage for the month. Hosts reporting as inactive don't count. (Source: Datadog docs, Billing, November 2026) The top 1% of hours is about 7 hours in a 30-day month, so a scale-up that lasts longer than that sets your bill for the whole month.
Figure: Datadog bills hosts on the high-water mark of the lower 99% of hours, so any scale-up longer than about 7 hours sets the month's host count. Illustrative example.
Consolidate small, lightly loaded hosts, make sure autoscaling actually scales down after traffic peaks, and schedule load tests and batch jobs so they don't hold extra hosts for longer than a few hours. If batch nodes only run Datadog for metrics you never look at, consider leaving the Agent off them.
13. Exclude containers you don't need from the Datadog Agent
Pro includes 5 containers per host and Enterprise includes 10; extra containers are metered every five minutes and billed per container hour. (Source: Datadog docs, Container Billing, November 2026) Use DD_CONTAINER_EXCLUDE to stop the Agent from collecting logs and metrics from sidecars, jobs, and namespaces you don't need to monitor. (Source: Datadog docs, Container Discovery Management, November 2026).
Dense Kubernetes nodes are where this matters most: a node running 30 pods with sidecars can be far above the allotment. Start with system namespaces, init and pause containers, and short-lived CI or cron job containers. Our Kubernetes monitoring best practices cover what is worth monitoring on a cluster in the first place, and our breakdown of what drives Datadog costs in Kubernetes shows how containers, labels, and autoscaling add up.
How to keep Datadog costs under control over time
The tactics above reduce today's bill. These last two keep it from creeping back up: committing to the usage you can predict at a lower rate, and catching unexpected growth the day it happens instead of at the end of the month.
14. Commit to predictable usage with a Datadog annual plan
Annual commitments are priced below on-demand rates. Infrastructure Pro is $15 per host per month billed annually versus $18 on demand, and 15-day indexed logs and indexed spans are each $1.70 per million annually versus $2.55 on demand. (Source: Datadog pricing list, November 2026).
Commit to your steady baseline and leave the variable part on demand, so you don't pay for capacity you don't use. Apply the earlier tactics before you sign, because a commitment based on today's unoptimized usage locks in waste for a year.
15. Alert on Datadog estimated usage metrics
Datadog publishes near-real-time estimated usage metrics, such as datadog.estimated_usage.hosts, datadog.estimated_usage.logs.ingested_bytes, and datadog.estimated_usage.apm.ingested_spans, and you can build monitors on them. (Source: Datadog docs, Estimated Usage Metrics, November 2026).
Alert on sudden jumps so a noisy deploy shows up the same day, not on next month's invoice. Group the log usage monitor by service so the alert names the source, and route these alerts to the team that owns the budget as well as the team that owns the service.
Which Datadog cost optimization tactics save the most?
Not every tactic is worth the same effort. The table ranks them by the bill line they affect, how much work they take, and what you give up. Log tactics usually save the most because log indexing is usually the largest line item; in the 50-host example below, it is about three quarters of the bill.
| Tactic. | Bill line. | Effort. | What you give up. |
|---|---|---|---|
| 1. Exclude noisy logs. | Log indexing. | Low. | Little, if filters target true noise. |
| 3. Logs to metrics. | Log indexing. | Low. | Raw events for the patterns you convert. |
| 4. Shorter retention. | Log indexing. | Low. | Search on older logs. |
| 7. Metrics without Limits. | Custom metrics. | Medium. | Querying on dropped tags. |
| 10. Trace sampling. | APM ingestion. | Medium. | Traces for sampled requests. |
| 12. Right-size hosts. | Infrastructure, APM. | Medium to high. | Headroom during scale-ups. |
| 14. Annual commitment. | All. | Low. | Flexibility if usage drops. |
Can you cut a Datadog bill without losing visibility?
Only partly. Tactics 1, 3, and 7 remove noise, and they're worth doing on any Datadog account. Tactics 6, 14, and 15 change nothing about what you can see.
Beyond that, every saving removes data you might need: excluded logs aren't searchable in Log Explorer, sampled traces aren't there when you investigate an incident, and dropped tags can't be queried. That's built into the pricing model, because Datadog bills on indexed events, metric cardinality, and hosts. Lowering the bill means indexing, tagging, or monitoring less, and the data you cut is often what you need during the next incident.
OpenObserve takes the opposite approach. It bills on one unit, data ingested, so you keep every log searchable, every tag queryable, and every host monitored, and you control cost by controlling volume. For vendor-neutral ways to do that, see our observability cost optimization tactics and OpenTelemetry cost reduction guides.
When does switching from Datadog cost less?
Switching costs less once log indexing, host fees, and custom metrics make up most of your bill, which happens quickly as a team grows. Here's a like-for-like example: 50 hosts with infrastructure monitoring and APM, 100 GB of logs per day searchable for 30 days, and 10,000 custom metrics.
| Monthly line item. | Datadog (annual list prices). | OpenObserve Cloud (annual contract). |
|---|---|---|
| Infrastructure hosts (50). | $750. | $0, no per-host fees. |
| APM hosts (50). | $1,550. | $0, no per-host fees. |
| Logs: 3,000 GB ingested, searchable for 30 days. | $7,800. | $1,500. |
| Custom metrics: 10,000, with 5,000 included. | $250. | $0, no per-metric fees. |
| Subtotal, before trace and metric volume. | $10,350. | $1,500. |
How we calculated it:.
- Datadog: hosts at $15 (Infrastructure Pro) and $31 (APM); logs at $0.10 per GB ingested plus $2.50 per million events indexed with 30-day retention, assuming 1 KB per event; custom metrics at $5 per 100 beyond the Pro allotment of 100 per host. (Source: Datadog pricing list and billing docs, November 2026).
- OpenObserve Cloud: $0.50 per GB ingested on an annual contract ($0.70 pay as you go), $0.01 per GB queried, with 30 days of log and trace retention and 15 months of metrics retention included. Custom metrics are unlimited.
- Trace and metric volume: Datadog's $31 APM host fee includes 150 GB of ingested spans per host, with extra spans at $0.10 per GB. OpenObserve bills traces and metrics at the same per-GB rate as logs, so add your trace and metric volume to the OpenObserve column. Even then, saving $2,300 in host fees and $6,300 on logs leaves room for a lot of trace and metric data.
Your numbers will differ, so run them on real usage: upload your Datadog invoice to the OpenObserve Bill Analyzer for a line-by-line comparison, or see how teams make the move on our switch from Datadog page. For a broader cost comparison across every signal, read Datadog vs OpenObserve: cost.
How to migrate from Datadog without re-instrumenting
Switching doesn't mean re-instrumenting. In most cases the Datadog Agent stays in place and only its destination changes, routed through an OpenTelemetry Collector. You can dual-write to Datadog and OpenObserve for a short period, compare the data side by side, then decommission the Datadog Agents once dashboards, monitors, and on-call workflows have moved.
The Datadog to OpenObserve migration guide covers metrics, traces, logs, dashboards, and alerts step by step. For metrics specifically, see migrating Datadog metrics to OpenObserve with OpenTelemetry, and for logs, Datadog vs OpenObserve for log management.
How OpenObserve keeps observability costs down
OpenObserve is an open-source (AGPL-3.0) observability platform for logs, metrics, traces, and frontend monitoring. It's ingest-based, with no per-host, per-user, or per-custom-metric fees, and it stores data as compressed Parquet on object storage. Instead of choosing what to index, you choose what to ingest, and everything you ingest stays searchable. Here is how each of the Datadog cost levers above looks in OpenObserve.
Drop noisy data before storage with OpenObserve pipelines
Pipelines filter, transform, and route data in real time, so you can drop debug logs before they're stored and keep everything else fully searchable. This replaces Datadog exclusion filters and quotas (tactics 1 and 2), with one difference: dropped data is never billed, and kept data is always searchable.

Pipelines can also run VRL functions to reshape records in flight, for example removing bulky fields, deriving a smaller field from a large one, or redacting values you shouldn't store. Our guide to setting up pipelines in OpenObserve walks through a full example.

Find your noisiest log sources with OpenObserve log patterns
You can't cut volume until you know where it comes from. Log patterns group similar log lines into templates and show how many events each template produced, so the handful of patterns that make up most of your volume stand out immediately. That makes it easy to decide what to drop in a pipeline. Read more in automatic log pattern extraction.

Keep more history with compression and per-stream retention
Because OpenObserve stores data as compressed Parquet on object storage, longer retention costs far less than indexed retention. Retention is set per stream, so you can keep audit logs for a year and debug logs for a week, with no separate archive tier or rehydration step. In the example stream below, about 97 GB of ingested data takes up about 1.1 GB of compressed storage; your compression ratio depends on your data.

Send unlimited custom metrics with no cardinality fees
OpenObserve doesn't charge per custom metric or per tag combination, so the tag decisions in tactics 7 to 9 become query-performance decisions, not billing decisions. You query metrics with PromQL or SQL and build panels from the same view. See Datadog vs OpenObserve for metrics for a feature comparison.

What else is included in the OpenObserve platform?
The same ingest-based price covers the full platform:.
- Telemetry: logs, metrics, and traces with a service graph and service catalog, plus continuous profiles.
- Frontend monitoring: real user monitoring (RUM), session replay, and error tracking.
- Synthetic monitoring: scheduled browser and protocol checks.
- AI: AI Assistant, SRE Agent for AI root cause analysis, an MCP server, LLM observability and evaluations, anomaly detection, log patterns, and insights.
- Alerting and reliability: scheduled, real-time, composite, and anomaly alerts, incident management, and SLOs with error budgets and burn rates.
- Dashboards and reports: real-time dashboards and scheduled PDF, PNG, or CSV reports.
- Data processing: pipelines, VRL functions, enrichment tables, and metrics downsampling.
- Storage and cost: Parquet on object storage, Bring Your Own Bucket on Cloud, extended retention, and ingest-based pricing with unlimited users.
- Security and governance: SSO, RBAC, multi-tenancy, sensitive data redaction, audit trail, cipher keys, and federated search.
- Compliance: SOC 2 Type II, ISO 27001, and GDPR via the EU-Central 1 (Frankfurt) region.
- Open standards: OpenTelemetry-native ingestion, PromQL and SQL querying, and open source under AGPL-3.0.
Get started with OpenObserve
The fastest way to see what your own Datadog bill would look like on OpenObserve is to run the numbers and then send a copy of real data.
- Estimate your savings: run your Datadog invoice through the Bill Analyzer.
- Try it: sign up for OpenObserve Cloud with a 14-day free trial.
- Run it yourself: follow the OpenObserve quickstart for a single binary or Docker.
- Compare alternatives: read the top 10 Datadog alternatives and our open-source Datadog alternative guide.
Frequently Asked Questions
About the Author
Follow OpenObserve on Google
Add OpenObserve as a preferred source to see more of our articles in Google Search and Top Stories.










