Prometheus vs Datadog: When Open Source Wins
The metrics stack you self-host is free software plus a real ops bill. Datadog hands you everything and mails you the invoice. Here's how we pick.
Key takeaways
- Choose Prometheus when you mainly need metrics and have an engineer to run it; the software is free but storage, high availability and Alertmanager are your job.
- Choose Datadog when you want metrics, traces and logs on day one with no ops headcount, and cap custom metrics and log indexing before the per-host and per-usage bill grows.
On this page
Prometheus wins when your needs are mostly metrics, you are cost-sensitive, and one engineer can own scraping, storage and Alertmanager. Datadog wins when you need metrics, traces, logs and RUM on day one and have no ops headcount to spare. The software price is zero versus per-host; the real deciders are who operates it and how you control cardinality.
Verified against
Prometheus 3.15.1 (released 2026-10-21) and Datadog list prices, against the prometheus.io storage and configuration docs and the Datadog pricing list. Checked October 2026.
Teams usually arrive at this question from one of two directions. One inherits a Datadog bill that crossed six figures and asks if Prometheus can replace it. Another is drowning in a homegrown Prometheus setup that pages nobody because Alertmanager was never wired up, and wants to buy its way out. Neither switch is free.
What each one actually is
Prometheus is a pull-based metrics database. It scrapes HTTP endpoints your services expose, stores time series locally, and answers PromQL queries. Around it you bolt Alertmanager for routing pages and Grafana for dashboards. Three separate tools, all open source, all yours to run. The software costs nothing. The EC2 instances, the object storage, and the engineer who gets paged when the TSDB fills its disk are not nothing.
Datadog is a managed SaaS agent that pushes everything to their cloud: metrics, traces, logs, real user monitoring, synthetics, the works. You install one agent, click some integrations, and dashboards appear. You pay per host, per 100 custom metrics, per gigabyte of logs ingested, per million indexed log events, per APM host, and per a dozen other line items that each looked small when you signed up.
That framing already tells you the trade. One is a metrics tool you assemble and operate. The other is an everything platform you rent.
Cost, honestly
The "Prometheus is free" line is true and misleading. The binary is free. Running it at any real scale is not. You'll pay for compute, for persistent volumes, and eventually for a long-term storage layer. But that cost scales with your infrastructure and your competence, not with a price sheet. The docs put local storage at an average of 1-2 bytes per sample, so disk is rarely the expensive part; people time is.
Datadog bills per host and per volume. As of October 2026 the annual list rates are $15 per host for Infrastructure Pro, $31 per APM host, $5 per 100 custom metrics, $0.10 per ingested GB of logs and $1.70 per million indexed log events at 15-day retention. That model is fine at ten hosts and brutal at a thousand, especially once custom metrics and log ingestion climb. The bills that shock people are almost never the base host fee. They're custom metrics cardinality and log volume, the two things that grow silently until finance forwards you a chart.
Rough shape of it:
| Prometheus stack | Datadog | |
|---|---|---|
| Software cost | Free (OSS) | Per-host + per-usage |
| Who operates it | You | Datadog |
| Metrics model | Pull / scrape | Push / agent |
| Query language | PromQL | Datadog query + tags |
| Long-term storage | Add Thanos / Mimir / Cortex | Included, tiered retention |
| APM / logs / RUM | Separate tools you add | Built in |
| Integrations | Exporters, some assembly | Hundreds, click to enable |
| Cardinality cost | Your RAM and disk | Your invoice |
| Lock-in | Low, open formats | High, proprietary agent + data |
| Time to first dashboard | Days | An afternoon |
Scaling Prometheus past one box
A single Prometheus server is a single point of failure. Its local storage "is not clustered or replicated," in the docs' words, and retention defaults to 15 days unless you set --storage.tsdb.retention.time or a size limit. That's fine for a homelab and unacceptable for a platform team. This is where the open source story gets more involved.
The usual fixes are Thanos, Mimir, or Cortex. Thanos ships your TSDB blocks to object storage (S3, GCS) and gives you a global query view plus deduplication across replica pairs. Mimir, from the Grafana folks, is the more opinionated horizontally scalable option and tends to be what larger teams land on now. Cortex is the older ancestor of both. All three solve the same two problems: long-term retention in cheap object storage, and high availability so one dead node doesn't blind you.
The catch is that you're now operating a distributed system to hold your monitoring for your other distributed system. That is real work. Budget for it or don't start.
Cardinality and retention, the tax nobody quotes
Both systems punish high cardinality, just differently. In Prometheus, a label with millions of unique values (user IDs, request IDs, full URLs) blows up memory and can OOM the server. You feel it as an outage. In Datadog, that same explosion arrives as a custom-metrics overage on the invoice. You feel it as a finance conversation. Same root cause, different failure surface. Our Prometheus high-cardinality fix finds and drops the offending label.
Retention is the mirror image. Prometheus keeps data cheaply only if you've built out object storage. Datadog keeps metric tags and values for 15 months, but indexed logs and spans follow your plan (15 or 30 days for spans), and longer windows cost more. People find that out when they go looking for last quarter's logs and they're gone.
Alerting and lock-in
Alertmanager is genuinely good once configured: dedup, grouping, silences, routing to PagerDuty or Slack. It's also a config file that a human has to get right, and a badly configured Alertmanager is worse than none because it breeds alert fatigue. Datadog's alerting is friendlier out of the box and ties directly to the same tags you monitor on, which is a real convenience.
Lock-in is the quiet decider. Prometheus speaks open formats. OpenMetrics, remote-write, and PromQL are portable, and Grafana points at anything. If you want to leave, you can. Datadog's value is the integrated whole, and that whole is proprietary. The agent, the tags, the dashboards, and the stored data don't come with you. The switching cost is exactly as high as the convenience was pleasant.
For the broader picture on where these sit among other tooling, our roundup of observability tools covers the adjacent options, and Datadog vs Grafana covers the managed Grafana route if you want PromQL without running the storage yourself.
A config we'd actually ship
A scrape job that strips a high-cardinality label before ingestion, plus a recording rule, the boring stuff that makes PromQL fast in production:
scrape_configs:
- job_name: 'api'
scrape_interval: 15s
metrics_path: /metrics
static_configs:
- targets: ['api-1:8080', 'api-2:8080']
metric_relabel_configs:
# drop a high-cardinality label before it hits the TSDB
- action: labeldrop
regex: 'request_id|user_id'
groups:
- name: api-latency
rules:
- record: job:http_request_p99:5m
expr: |
histogram_quantile(0.99,
sum(rate(http_request_duration_seconds_bucket[5m])) by (le, job))
That metric_relabel_configs block is the discipline Datadog charges you to skip. You decide what not to keep before it costs you. The docs warn that labeldrop must still leave every series uniquely labeled, so drop identifiers, never the labels that distinguish real series. On the Datadog side the equivalent lever is Metrics without Limits, covered in how to reduce Datadog costs.
Questions people ask
Can Prometheus replace Datadog?
For metrics and alerting, yes: Prometheus, Alertmanager and Grafana cover scraping, PromQL queries, routing and dashboards. It does not replace Datadog's APM, log management, RUM or synthetics, so a full swap means adding tracing and log tools too. Plan for long-term storage with Thanos or Mimir, and for an engineer who owns the stack. Teams that only count the license savings usually regret the move.
Is Prometheus cheaper than Datadog?
The software is free and storage is cheap, at an average of 1-2 bytes per sample per the Prometheus docs. Datadog lists $15 per host for Infrastructure Pro plus $5 per 100 custom metrics on annual billing as of October 2026. Prometheus is usually cheaper at scale in dollars, but you pay in engineering hours for HA, retention, upgrades and on-call for the monitoring itself.
How long does Prometheus keep data?
By default 15 days. Change it with --storage.tsdb.retention.time or cap disk with --storage.tsdb.retention.size. Local storage is not clustered or replicated, so for months of history or high availability, ship blocks to object storage with Thanos, or remote-write into Mimir or Cortex.
The call we'd make
If you're metrics-centric, cost-sensitive, and have at least one engineer who can own the stack, run Prometheus. Add Mimir or Thanos the day retention and HA stop being optional, and wire Alertmanager properly on day one, not day ninety. You'll spend engineering time and save real money, and you'll own your data.
If you want traces, logs, RUM, and dashboards on the same day with zero ops headcount to spare, buy Datadog and accept the bill as the price of not staffing an observability team. Just cap your custom metrics and log ingestion early, before the invoice teaches you to. The tool that wins is the one your team can actually operate.
Sources
Cite this article
Kiril Urbonas (2026). Prometheus vs Datadog: When Open Source Wins. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/prometheus-vs-datadog
[Prometheus vs Datadog: When Open Source Wins](https://www.devopsness.com/blog/prometheus-vs-datadog) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)
More from Cloud
Explore more articles in this category
Google Cloud's europe-west2 Outage: One Zone Lost Power and the Region Stalled for 6 Hours
On October 20, 2026, europe-west2-b lost power when its generators never started. Cross-zone control-plane timeouts then degraded the whole London region. What happened and the gcloud audit to run now.
Multi-Region: Active-Active vs Active-Passive, And What We Actually Run
The architectural choice is presented as binary; the practical answer is "depends on the workload." The patterns that earn their place and the failure modes to plan for.
Multi-Cluster Traffic Routing Strategies: A Pragmatic Rollout Pattern for Growing SaaS Teams
A real-world multi-cluster traffic routing guide for SaaS teams that have outgrown a single Kubernetes cluster and need safer rollout control without a service-mesh science project.
You might have missed
Evergreen posts worth revisiting.