In-depth: PostHog vs Datadog

In-depth: PostHog vs Datadog

Contents

Both PostHog and Datadog are developer platforms aimed at helping product teams understand the performance of their software.

This post provides a detailed guide comparing the two across features, use cases, and team types. It aims to help you pick the best APM tool for your use case, so you can go back to thinking about more pressing questions – like would you rather fight 100 hedgehog-sized dogs or 1 dog-sized hedgehog?

How is PostHog different?

We're free, usage-based, and transparent

Datadog has a free tier, but it's limited. Only some of their products, like infrastructure monitoring, have a free tier. Even then, there are limits like 5 hosts, with only a 1-day metric retention. APM, logs, RUM, replay, and more are excluded and only available as trials.

All of PostHog's products have a free tier that refreshes every month. Beyond that, every product's pricing is transparent. You can predict how much you're going to pay, rather than go through Datadog's complicated and multiplicative pricing.

Built for product engineers

Datadog is organized around services and hosts. PostHog is organized around events, people, and services.

This reflects the typical usage and users of each. Datadog is built for DevOps and infra teams monitoring their infrastructure and ensuring reliability while PostHog focuses on product engineers trying to build successful products.

This doesn't mean both aren't used by other types of users though. They have overlapped more and more. Datadog acquired Eppo for experiments and launched a feature flags product. PostHog launched logs and is filling out its APM suite with tracing in beta and metrics in open alpha.

PostHog makes your product self-driving (the whole way)

In PostHog, product data, errors, logs, and more all feed AI agents that research areas for improvements and actually write the code for you. Set it up and it makes your product self-driving.

Datadog has Bits Code which can make fixes too, but it needs a trigger like an error, flaky test, or slow query. It doesn't deduplicate across sources either. An exception, rageclick cluster, and Zendesk ticket could all be the same issue. Datadog wouldn't know it but PostHog would.

Finally, PostHog self-driving also checks changes after they ship. It closes the loop. Did they actually fix the issue? If it didn't, agents investigate and try again.

Install PostHog with one command

Paste this into your terminal and make AI do all the work.

Learn more
PostHog Wizard hedgehog

Comparing PostHog and Datadog

Core products

If you're focused on building successful products, PostHog has a more useful set of products to choose from such as Surveys, Web Analytics, and Replay Vision. On the infrastructure and security side, Datadog has a much stronger set of products as it includes Kubernetes, synthetic, or security monitoring.

Datadog
Error tracking
Track and monitor errors and exceptions in your code
Logs
Search and analyze your application logs with OpenTelemetry.
Session Replay
Watch real user sessions to understand behavior and fix issues
Product Analytics
Track usage, retention, and feature adoption with comprehensive analytics
AI Observability
Monitor and debug your LLM-powered features
Feature Flags
Control feature access with precision and safely roll out changes
Experiments
Run statistically rigorous A/B/n tests and validate ideas with confidence
Surveys
Collect product feedback with no-code surveys and customizable targeting
Web Analytics
Privacy-focused web analytics with real-time data and no sampling
Replay Vision
Point AI scanners at your recordings to classify, score, and summarize them
Partial
Data Stack
Import, query, model & visualize product and third party data together
CDP
Ingest, transform, and send data between 145+ tools
Infra monitoring
Monitor hosts, containers, Kubernetes, and cloud services
Synthetic monitoring
Scripted browser and API tests run on a schedule from managed locations
On-call & incident management
Paging schedules, escalation policies, and incident response workflows
Security monitoring
Cloud SIEM, cloud security management, and threat detection

Logs, traces, metrics

Logs, Traces, and an APM stack are newer PostHog features, but they're rapidly gaining feature parity with Datadog.

Datadog
Traces
Traces, request journey, and latency breakdown
Beta
Metrics
System and app performance over time
Alpha
Infra monitoring
Monitor hosts, containers, Kubernetes, and cloud services
Native OpenTelemetry ingestion
Natively ingest and process telemetry using OpenTelemetry APIs and formats
Partial
No proprietary query language
Use standard SQL or attributes instead of a vendor-specific query language
Partial
High-cardinality indexing
Index fields like user_id, trace_id, or request_id without cardinality limits causing issues
Alerting
Threshold, anomaly, and forecast alerts
Product analytics context
Connect logs to users, events, cohorts, funnels, retention, and feature usage
Ingest-only pricing
Pay for what you send, not for indexing it a second time
$0.10 per GB
No query/compute fees
Searching and analyzing your logs costs nothing extra
Log retention
How long ingested logs stay queryable
14 days (30-day add-on)
15 days (Flex to 15 months)
Service map
Auto-generated topology of services and their dependencies
Code-level profiling
Continuous CPU and memory profiling down to the line of code

Product analytics and session replay

Product Analytics and Session Replay are the tools PostHog started out with, are most known for, and are the strongest. Even though Datadog doesn't have the same focus on them, many of the same features are available on its platform too.

Datadog
Autocapture
Capture events without manual tracking
AI analysis
Surface user pain points using AI
Funnels
Track users through a sequence of events to find drop-off and improve conversion
User profiles
Track personally-identifiable user info like name, email, and usage data
Group analytics
Track metrics at a company and account level
SQL query editor
Write SQL queries directly against your data without a separate data warehouse
Mobile app recordings
Capture recordings in iOS and Android apps
Network monitoring
Monitor network activity during sessions
AI summaries
AI-generated summaries of session recordings
Beta
Replay Vision
Point AI scanners at your recordings to classify, score, and summarize them
Partial
Monthly free tier
Recordings included every month at no cost
5,000 web recordings, 2,500 mobile recordings
Trial
Recording retention policy
Configure how long recordings are stored before deletion
Up to 3 months
30 days (15 months add-on)

Pricing and free tier

The pricing and free tier might be the area where PostHog and Datadog have the largest differences. Although both have many products with separate pricing, PostHog provides a free tier and transparency for all of them.

Datadog
Free tier
Generous free tier available
Limited
Self-serve
No need to talk to sales
Free team members
Add teammates without paying per seat
Except on-call and incident seats
Usage-based pricing
Only pay for what you use
Free tier retention
How long data is kept on the free plan, and which products it covers
Logs 14 days, replays 1 month
Metrics 1 day
Billing units
What usage is metered and billed against
Events, GB, recordings, requests
Hosts, GB, events, sessions, seats
Hard spend caps
Stop collection at a limit you set instead of being billed past it
Log indexes only
On-demand premium
Extra cost for paying as you go instead of committing annually
None
0-80%, typically 20% (hosts)

How much does PostHog cost compared to Datadog?

First, the free tiers of both products differ significantly.

Datadog only covers infrastructure monitoring for up to 5 hosts with 1-day metric retention. PostHog's free tier refreshes every month and covers every product:

 Free usage per month
Logs10GB ingested
Error tracking100k exceptions
Product analytics1 million events
Session replay5,000 recordings
Surveys1500 responses
LLM observability100k events
Feature flags and A/B testing1 million API requests
Data warehouse1 million synced rows

Beyond that, both are usage based, but even this varies for Datadog depending on your commitment. Although PostHog does discounts for higher spend customers, there's no time-based commitment needed to get the best price.

To show how the two compare, here's some example scenarios assuming 20 events per session, 20% of sessions recorded for replay, ~1KB per log line, and Datadog indexing 20% of ingested logs at annual-commitment rates:

A seed-stage product: 50k sessions, 1M events, 10k replays, 50k errors, 20GB logs

PostHogDatadog
Product analytics$0$40
Session replay$25$25
Error tracking$0$25
Logs$3$9
Total$28$99

A Series A product: 250k sessions, 5M events, 50k replays, 300k errors, 150GB logs

PostHogDatadog
Product analytics$153$200
Session replay$173$125
Error tracking$74$80
Logs$35$66
Total$435$471

A scaling SaaS: 1M sessions, 20M events, 200k replays, 1M errors, 600GB logs

PostHogDatadog
Product analytics$643$800
Session replay$458$500
Error tracking$178$207
Logs$118$264
Total$1,397$1,771

Every Datadog figure above assumes an annual contract. Month-to-month is around 20% more and on-demand around 50% more (but depend on the product). PostHog has volume discounts, not time-based commitments.

Platform and security

Both PostHog and Datadog have the platform and security features enterprise or compliance-conscious teams need.

Datadog
Open source
Audit code, contribute to roadmap, and build integrations
EU hosting
Access and store your data in the EU
Self-host option
Deploy and run on your own infrastructure
MCP scope
How much of the platform agents can reach through the MCP server
Every product, read and write
Most products, read and write
Agent surfaces
Where you can steer agents from
App, Slack, desktop, CLI, MCP, editor
App, Slack, CLI, editors, mobile
HIPAA-ready
Can be compliant with HIPAA
SOC 2 Type 2
SOC 2 security certification
Role-based access control
Control access to features and data based on user roles and permissions
Enterprise

When to choose PostHog vs Datadog

Choose PostHog if:

  • You want to debug from either direction. Start with a user or feature and investigate the backend issues, or start with logs, metrics, and traces then understand the user impact.
  • You want the tool that finds the problem to also ship the fix via agents that open PRs as well as feature flags and experiments.
  • Cost predictability matters. PostHog provides transparent usage-based pricing, self-serve, hard spend caps per product.
  • You're already emitting OpenTelemetry and want to repoint an exporter or want quick setup using standard OpenTelemetry instrumentation, without requiring a proprietary agent.
  • You want observability in the same platform as product analytics, replay, flags, experiments, and warehouse data, querying the same data.
  • You don't have a dedicated infra team and need something useful on day one. Dedicated infra teams can use PostHog too though.

Choose Datadog if:

  • You're monitoring infrastructure like hosts, containers, Kubernetes, cloud services.
  • On-call, incident management, synthetics, or SLO tracking need to be a workflow, not an alert.
  • Security is in scope like needing Cloud SIEM, Cloud Security, threat detection.
  • You need continuous profiling, Cloud Network Monitoring (beyond frontend), or database monitoring.

Recommendation by team type

For Infrastructure, DevOps, and SRE teams

  • Datadog – Monitoring hosts, containers, Kubernetes, and cloud services are what it built for and still its largest business.

For teams that own on-call and incident response

  • Datadog – On-call scheduling, incident management, synthetics, and SLO tracking are workflows, not just alerts.

For security teams

  • Datadog – Cloud SIEM, Cloud Security, code security and threat detection are all large products.

For product and growth teams

  • PostHog – Funnels, retention, cohorts, person profiles, experiments, and replays are all core features of PostHog made to help these teams understand product usage and grow it faster.

For startups

  • PostHog – A single platform that scales from landing pages to product analytics to logs without rebuilding your stack as you grow. The generous free tier means you won't outgrow it quickly. Startups can also qualify for free credits.

For teams that need predictable costs

  • PostHog – Transparent pricing along with simple usage-based pricing for every product, and hard per-product limits make PostHog a much better option for teams concerned with cost predictability.

Install PostHog with one command

Paste this into your terminal and make AI do all the work.

Learn more
PostHog Wizard hedgehog

Frequently asked questions

PostHog says it makes your product "self-driving" – what does that mean?

It means PostHog digs through your product data, finds what's worth fixing, and has agents do the work. It starts with context. A full suite of developer tools – AI Observability, Product Analytics, Session Replay, Feature Flags, Experiments, Error Tracking, Logs, and more – captures everything happening in your product, and a Context Warehouse unifies it into one source agents can read across. From there, Scouts read across all of it and sort what's worth knowing from what's just noise. What clears the bar becomes a report in your inbox: an agent picks it up, roots out the cause, and opens a PR. You review and merge. You can steer it from Slack, the web app, the desktop app, or your own editor via the MCP or CLI.

What do people actually use Datadog for?

Three products mostly: infrastructure monitoring, log management, and APM. Real user monitoring, synthetics, session replay, product analytics, and CI visibility exist, but are not the main characters.

Why is Datadog so expensive?

Less because any single product is so expensive, and more because the combination of them can add up.

It starts with per-host billing. Infrastructure Pro is $15 per host per month annually or $18 on-demand. APM adds $36 standalone or $48 with infra. Hosts are billed on the month's maximum (lower 99%) rather than its average, so a scale-up that lasts more than a few hours sets your price for the whole month.

Meters stack too. Logs are charged twice: $0.10 per ingested GB and then $1.70 per million events to index them at 15 day retention. Per 1000 session, RUM costs $0.15 to measure, another $3 to filter and retain, and $2.5 record replays.

Can I cap my Datadog spend?

Partly. Datadog offers daily quotas per log index that stops indexing when you hit them, plus exclusion-filter sampling and usage monitors.

They don't have limits on hosts, APM, and custom metrics, only sampling. These are often the largest line items too.

With PostHog, you can set hard billing limits per product. When you reach it, collection stops until the next cycle (or when you raise the limit) and you are not billed past it.

Do I need to rewrite instrumentation to move off Datadog?

No. PostHog ingests logs, traces, and metrics over standard OpenTelemetry. If you're already emitting OTel, simply change the endpoint. There's no PostHog-specific SDK to adopt.

Historical metrics and logs as well as dashboards and monitors don't convert (but can be synced with PostHog's warehouse source), but both tools can be run side-by-side to help with this transition.

Can I use PostHog and Datadog together?

Yes, and teams do. They cover infrastructure with Datadog and product with PostHog.

Two things make this easier:

  1. A Datadog-compatible logs endpoint. Point your existing Datadog Agent at <ph_client_api_host>/i/v1/logs/datadog/<ph_project_token> and your logs land in PostHog. You don't have to remove the agent to start.
  2. A Datadog source for the data warehouse (currently in alpha), which syncs monitors, dashboards, incidents, and SLOs into PostHog so you can query them alongside your product data.
Can PostHog replace Datadog?

For many of Datadog's core products, yes. Error tracking, logs, session replay, and product analytics are all fully featured in PostHog while tracing and metrics are closing the gap.

For a bunch of monitoring, not yet. PostHog doesn't have Kubernetes, synthetic, database, or security monitoring. It doesn't have on-call or incident management either.

Is Datadog open source? Is PostHog?

Datadog isn't open source. Some bits of its platform, like the Datadog Agent are, but most aren't.

PostHog is MIT-licensed and has a public handbook with details on how the company operates.

Subscribe to our newsletter

build mode

Read by 75,000+ founders and builders

We'll share your email with Substack

PostHog is the leading platform for building self-driving products. With a full suite of developer tools – AI observability, product analytics, session replay, feature flags, experiments, error tracking, logs, and more – PostHog captures all the context agents need to diagnose problems, uncover opportunities, and ship fixes. A data warehouse and CDP tie it all together, unifying that context into one source agents can read across. You can steer it all from Slack, the web app, the desktop (PostHog Desktop), or your own editor via the MCP.