Skip to content
Home › SQL Comparisons › Datadog vs New Relic for Database Monitoring
Comparison · Database Monitoring

Datadog vs New Relic for Database Monitoring

Both are SaaS observability platforms with database monitoring. Datadog sells Database Monitoring as its own product per database host, with explain plans and trace links across more engines; New Relic collects query performance data through its on-host integrations for MySQL, PostgreSQL and SQL Server and charges by data ingested and by user, not per host.

Last verified October 2026. Licensing and features change; check the official sources for the latest details.

Quick verdict

Short answer

If database monitoring is a priority across several engines, Datadog has the more extensive dedicated product: Database Monitoring covers Postgres, MySQL, MariaDB, Oracle, SQL Server, MongoDB, DocumentDB and ClickHouse, and links query samples to APM traces. New Relic is attractive if you already use it or want usage-based pricing: its query performance monitoring for MySQL, PostgreSQL and SQL Server collects slow queries, wait events, execution plans and blocking sessions, there are no per-host charges, and the free tier includes 100 GB of ingest a month. The pricing models differ so much that the cheaper option depends on your host count, data volume and number of full users.

How we know: This comparison is research-based: database monitoring features, supported engines and pricing models were checked against Datadog's and New Relic's official documentation and pricing pages on 7 October 2026. We have not run either product, so nothing here is a measured result.

Datadog is a SaaS observability platform. Its Database Monitoring (DBM) product uses the Datadog Agent to collect normalized query metrics, query samples, explain plans and database metrics, and can link them to Datadog APM traces. It is billed separately from Datadog's infrastructure and APM products.

New Relic is also a SaaS observability platform. For databases it offers two angles. On the database side, the infrastructure agent's on-host integrations for MySQL, PostgreSQL and Microsoft SQL Server include query performance monitoring, which New Relic announced as generally available on 22 July 2025. On the application side, New Relic APM agents report database calls and slow query traces from inside transactions. New Relic prices by data ingested and by user type rather than by host.

Side by side

AspectDatadogNew Relic
Database product Database Monitoring, a separate product Query performance monitoring in the on-host integrations, plus APM database views
Engines with query-level monitoring Postgres, MySQL, MariaDB, Oracle, SQL Server, MongoDB, Amazon DocumentDB, ClickHouse MySQL, PostgreSQL, Microsoft SQL Server
Query samples Query samples with user and application attribution; kept 15 days Slow query samples and individual query events above a response-time threshold
Explain plans Collected for samples, with cost and duration compared across snapshots Query execution plan events from the integrations; APM slow query traces can include explain plans
Wait analysis Wait event analysis, active connections and blocking queries Top wait events and blocking session details
Link to APM traces Trace IDs injected into SQL comments link samples to traces (Postgres, MySQL, SQL Server, Oracle, MongoDB) APM agents capture database segments and slow queries in traces; New Relic positions query performance monitoring as independent of APM
Pricing basis Per database host per month, on top of other Datadog products GB ingested plus paid users; no per-host charges
Free option 14-day free trial Free tier: 100 GB ingest a month, one full platform user, unlimited basic users
Main trade-off Broader dedicated database product, but a per-host bill that adds up across products Simple usage-based model and a free tier, but query-level monitoring for fewer engines

Key differences

Supported engines and managed services

Datadog documents DBM for self-hosted and managed versions of eight engines. Examples from its setup pages: Postgres 9.6 to 18 on self-hosted, Amazon RDS, Aurora, Google Cloud SQL, AlloyDB, Azure, Heroku and Supabase; MySQL 5.6 to 9 and MariaDB 10.5 to 13 on self-hosted, RDS, Aurora, Cloud SQL and Azure; SQL Server 2012 to 2025 on self-hosted, RDS, Azure SQL Database, Azure SQL Managed Instance and Cloud SQL. For managed services the Agent runs on a separate host that can reach the database.

New Relic's query performance monitoring is documented for MySQL, PostgreSQL and Microsoft SQL Server. The MySQL integration requires MySQL 5.7 or later (8.0 or later recommended) or MariaDB 10.x (10.5 or later recommended). New Relic's GA announcement mentions AWS Aurora and RDS compatibility, and its PostgreSQL integration documentation includes configuration for RDS, Aurora and Azure Database for PostgreSQL Flexible Server. New Relic has other database integrations, but query-level monitoring for Oracle, MongoDB or ClickHouse is not part of this feature as documented.

Query samples, explain plans and waits

Datadog groups queries into normalized queries (parameters stripped) and tracks metrics for the top 200 per database host, keeping query metrics for 15 months. Query samples show individual executions with attribution; Datadog notes that the samples page is a snapshot of running and recently finished queries, not every query. Explain plans show cost and duration for the current sample and averages and p90 across snapshots. Database host pages show active connections, blocking queries, schemas and calling services, and DBM monitors can alert on waiting queries, long-running queries or explain plan cost changes.

New Relic's integrations collect slow queries (execution counts, CPU and elapsed times, disk I/O), wait event analysis, execution plans and blocking sessions as events, shown in a query performance dashboard. Collection is switched on with ENABLE_QUERY_MONITORING, and only queries above QUERY_MONITORING_RESPONSE_TIME_THRESHOLD (1 ms by default) are sent, so very fast queries may need a lower threshold. Both tools read the engine's own statistics; on PostgreSQL that is the pg_stat_statements extension, which both require:

-- PostgreSQL 13 and later: top statements by total execution time
SELECT calls,
       round(total_exec_time::numeric, 1) AS total_ms,
       round(mean_exec_time::numeric, 2)  AS mean_ms,
       left(query, 80)                    AS query
FROM pg_stat_statements
ORDER BY total_exec_time DESC
LIMIT 10;

Integration with APM traces

Datadog's DBM and APM link through SQL comment propagation. In full mode the tracer sends trace information to the database so you can open the APM trace behind a query sample; in service mode only the service name is sent, which still shows which services drive load. Supported tracer languages vary by engine (for Postgres and MySQL: Go, Java, .NET, Node.js, PHP, Python and Ruby; for SQL Server: Go, Java and .NET). This needs Agent 7.46 or later.

In New Relic, the APM side shows database operations, throughput and response time per service, and slow query traces taken from transaction traces, which can include the query plan where the agent supports it. SQL capture is controlled by each agent's record_sql setting: obfuscated by default in agents such as Ruby and PHP, and off by default in the Node.js agent, in which case slow queries are not captured. New Relic presents its newer query performance monitoring as usable without APM agents, so database teams can work from database-side data alone. See Database Monitoring vs APM for how the two views complement each other.

Pricing models

This is the biggest practical difference. Datadog charges per database host for DBM, separately from infrastructure hosts and APM, so cost tracks the number of databases you monitor. New Relic charges for data ingested beyond a free allowance and for full platform and core users, with no per-host charge, so cost tracks how much telemetry you send and how many people need full access. Turning on query-level monitoring in New Relic adds events and therefore ingest. Neither vendor's model is cheaper in general; model both with your own host count, ingest estimate and user count. Exact prices are in the pricing section below.

Pricing and licensing

Datadog. Listed on the vendor's pricing page in October 2026 (USD): Database Monitoring is $70 per database host per month billed annually, or $84 billed month-to-month or on demand. Datadog's billing documentation says each database host includes 200 normalized queries, with more billed by the number tracked. Infrastructure Monitoring and APM are separate products (for example, Infrastructure Pro is $15 per host per month billed annually). Example: monitoring 10 database hosts with DBM on annual billing lists at 10 x $70 = $700 a month for DBM alone, before any infrastructure or APM charges. Datadog offers a 14-day free trial with no credit card.

New Relic. Listed on the vendor's pricing page in October 2026 (USD): the free tier includes 100 GB of data ingest a month, one full platform user and unlimited basic users. Data beyond 100 GB costs $0.40 per GB on the Original Data option or $0.60 per GB on Data Plus (which adds extended retention and governance features). Core users are $49 per user per month. Full platform users are $10 for the first user and $99 for each additional user (up to five) on Standard, and $349 per user per month on Pro with an annual commitment or $418.80 pay as you go; Enterprise is priced by sales. Example: 300 GB of ingest in a month on Original Data is (300 - 100) x $0.40 = $80 for data, before user charges. A compute-based option is offered for Pro and Enterprise through sales.

Pricing checked on the vendors' official pages on 7 October 2026. Prices change; confirm before buying.

Where each one leads

Datadog strengths

  • Dedicated database product covering eight engines, including Oracle, MongoDB and ClickHouse
  • Query samples linked to APM traces through SQL comment propagation
  • Explain plan cost and duration compared across snapshots
  • Query metrics kept for 15 months
  • Optional SQL Server extras such as Agent job metrics and deadlock monitoring

New Relic strengths

  • No per-host charges; cost follows data ingest and users
  • Free tier with 100 GB of ingest a month
  • Slow queries, wait events, execution plans and blocking sessions for MySQL, PostgreSQL and SQL Server
  • Database-side query monitoring that works without APM agents

Limitations

Datadog limitations

  • Per-host DBM price on top of other Datadog products
  • Metrics cover the top 200 normalized queries per host unless you pay for more
  • Query samples kept for 15 days
  • SaaS only; query text and metadata are sent to Datadog

New Relic limitations

  • Query performance monitoring documented for three engines only
  • Queries below the response-time threshold (1 ms by default) are not sent
  • Full platform user pricing can dominate cost for larger teams
  • SaaS only; ingest volume needs watching once query events are enabled

When to choose each

Choose Datadog if

  • You monitor Oracle, MongoDB, MariaDB or ClickHouse as well as Postgres, MySQL and SQL Server
  • You want query samples linked directly to APM traces
  • You already run Datadog infrastructure monitoring or APM
  • You prefer a predictable per-database-host price

Choose New Relic if

  • Your databases are MySQL, PostgreSQL or SQL Server
  • You already use New Relic APM or infrastructure monitoring
  • You want a free tier or usage-based pricing without per-host charges
  • Many people need basic read access but few need full platform access

When neither is right

Final recommendation

Bottom line

For database monitoring specifically, Datadog offers the more complete dedicated product: more engines, trace-linked query samples and longer query metric history, priced per database host on top of the rest of your Datadog bill. New Relic covers the three most common relational engines with slow queries, waits, plans and blocking, and its ingest-plus-users model and free tier can suit teams with many hosts and modest data volumes. If you already standardise on one of them, its database features are usually good enough to try first. For wider options, see the best database monitoring tools, plus the guides for PostgreSQL, MySQL and SQL Server.

Frequently asked questions

Does New Relic charge per host?

No. New Relic's pricing page describes a usage-based model with no per-host charges: you pay for data ingested beyond the free 100 GB a month and for full platform and core users.

Is Datadog Database Monitoring included in Datadog infrastructure monitoring?

No. Database Monitoring is a separate product on Datadog's price list, billed per database host. The standard database integrations report metrics, but query-level metrics, samples and explain plans are part of DBM.

Which databases does New Relic query performance monitoring support?

New Relic documents query performance monitoring for MySQL, PostgreSQL and Microsoft SQL Server through its on-host integrations, enabled with the ENABLE_QUERY_MONITORING setting.

Can I see explain plans in both?

Yes. Datadog collects explain plans for query samples. New Relic's integrations collect query execution plans, and its APM agents can attach explain plans to slow query traces where supported.

Do I need pg_stat_statements for PostgreSQL?

Yes, for query metrics in both. Datadog requires pg_stat_statements loaded through shared_preload_libraries, and New Relic's integration user needs the pg_read_all_stats role because it reads pg_stat_statements.

Sources

Checked October 2026.

How we research comparisons: our editorial method.

More comparisons

Browse all SQL comparisons or the tools directory.