Dev48
Language
  • About
  • Services
  • Industries
  • Technologies
  • Articles
  • Contacts
Book a call
    Home/Articles/How otel users can monitor databases natively in datadog
Dev48
info@dev48.org+375 29 320-40-96WhatsApp@isky_by

© 2026 · All rights reserved.

How OTel users can monitor databases natively in Datadog

Source: Datadog•December 1, 2026 at 06:09 PM

How OTel users can monitor databases natively in Datadog

Datadog natively maps OpenTelemetry (OTel) metrics from PostgreSQL, Redis, and MongoDB to its out-of-the-box dashboards, alongside Datadog Agent data.

OpenTelemetry (OTel) enables teams to collect database metrics by using a single open standard across their fleet. But when PostgreSQL connections accumulate, Redis runs low on memory, or MongoDB queries slow down, teams need a fast way to identify and resolve performance problems. Without an easy way to visualize OTel telemetry data, engineers must build custom dashboards and manually translate database metric names when troubleshooting issues in external tools.

To provide OTel users with an interoperable integration experience, we’re pleased to announce that Datadog now natively supports MongoDB, PostgreSQL, andRedis metric collection. OTel metrics are mapped directly to their Datadog equivalents, so you can monitor your databases without having to convert metric names. By using our out-of-the-box dashboards, OTel users can quickly assess database health and performance.

In this post, we’ll discuss how our OTel database integrations give teams the same out-of-the-box dashboards available to Datadog Agent users. Specifically, we’ll cover how to:

  • Monitor databases without building dashboards from scratch

Monitor databases without building dashboards from scratch

  • Troubleshoot a slow service across your data tier

Troubleshoot a slow service across your data tier

  • Find the queries behind a slowdown with Database Monitoring

Find the queries behind a slowdown with Database Monitoring

Monitor databases without building dashboards from scratch

OTel users have access to the same MongoDB, PostgreSQL, and Redis Overview dashboards as Datadog Agent users. Datadog automatically maps supported OTel metrics to their Datadog equivalents, so OTel data appears in dashboards under the Datadog metric name. For example, the postgresql.backends OTel metric appears as postgresql.connections in Datadog.

Datadog’s native OTel integrations provide a consistent foundation for monitoring different database technologies. For teams using both the Datadog Agent and OTel Collector, the database integrations conveniently display data from both sources in the same dashboard.

Troubleshoot a slow service across your data tier

To show how our native OTel integrations help identify and resolve database issues, we’ll review an example where a checkout service’s p95 latency has doubled in the past hour. Traces indicate PostgreSQL as the source, but the cause remains unclear. To investigate further, you use the Datadog PostgreSQL Overview dashboard to review connection saturation, table bloat, and index activity.

Identify connection saturation

The Connections per database dashboard panel shows whether PostgreSQL connections are nearing capacity. It uses the postgresql.backends metric to track active backends and compares activity to the configured connection limit. As connections approach their limit, new application requests may experience longer wait times. This additional latency can impact multiple endpoints, even if the queries remain unchanged.

If the dashboard for our checkout service shows connections steadily increasing toward the maximum configured limit, we can hypothesize that queries are holding connections longer than expected. Our next step is to investigate the cause of slower database operations.

Investigate table bloat

The Dead rows dashboard panel indicates whether PostgreSQL is accumulating dead tuples faster than it can reclaim them. It monitors rows left by updates and deletes by using the postgresql.rows metric with the state:dead attribute.

PostgreSQL reclaims dead tuples through vacuuming. However, a sustained increase in dead rows indicates that cleanup is not keeping pace with write activity. Long-running transactions may also prevent vacuum from reclaiming tuples still visible to older transaction snapshots.

Accumulated dead tuples can cause table bloat, which increases the number of pages PostgreSQL must read during queries. As queries take longer, they may hold database connections for extended periods and contribute to saturation.

The Resources by table dashboard panel accelerates investigations by showing live rows, dead rows, and index scans for each table. For our checkout service, use it to determine if dead rows are accumulating throughout the database or mainly in a frequently updated table.

Find what’s driving the bloat

The Heap-only updates panel provides another clue. PostgreSQL uses heap-only tuple (HOT) updates when an update doesn’t modify indexed columns, and the new tuple version fits on the same page. HOT updates avoid unnecessary index modifications and can reduce write I/O.

Compare the Heap-only updates dashboard panel with the Updated panel above it. If heap-only updates decrease while total updates remain steady, fewer updates benefit from this optimization. This leads to more updates writing to every index and leaving dead rows, as shown in the Dead rows panel. Possible causes include adding an index to a frequently updated column or leaving insufficient free space on table pages due to the current fillfactor setting.

The Scheduled vs. Requested Checkpoints panel provides insight into write activity. Requested checkpoints occur when PostgreSQL reaches the write-ahead log (WAL) threshold before the scheduled interval. An increase in requested checkpoints may indicate higher WAL generation, which is often linked to more frequent index writes. Together, these dashboard panels help determine whether changes in update patterns or table maintenance are contributing to database slowdowns.

Examine index usage to narrow the root cause

The Most frequently scanned indexes and Least frequently scanned indexes panels highlight changes in PostgreSQL table access. Both panels use postgresql.index.scans to report index scan activity.

If an index that previously handled many checkout queries now shows fewer scans during increased latency, PostgreSQL may be selecting a different access path. Table bloat or changes in planner statistics can cause this behavior.

The Sequential scans vs. index scans panel in the dashboard’s Throughput group indicates whether the planner favors sequential scans. If this shift is excessive, lowering random_page_cost can encourage a return to index scans.

For our checkout service, the dashboard can reveal a sequence of events: A change in update behavior increases index maintenance and dead tuples, table bloat slows queries, and longer-running queries cause connection saturation.

Find the queries behind the slowdown with Database Monitoring

The dashboard has identified PostgreSQL as the source of the slowdown. Connections are saturated, dead rows are climbing, and index scans have dropped, suggesting that a change in execution plans is affecting performance. While the dashboard provides a high-level overview, Database Monitoring enables you to pinpoint which queries are holding connections and which plans they’re running.

Database Monitoring with OpenTelemetry, now in Preview for PostgreSQL, gives you query-level and plan-level visibility by using data from the OTel Collector. For our checkout service, start from the Connections per database panel and select View database queries. From there, you can:

  • Identify queries with the highest total execution time and longest duration, as these are likely holding connections.

Identify queries with the highest total execution time and longest duration, as these are likely holding connections.

  • Compare a query’s explain plans over time to confirm whether the planner switched from an index scan to a sequential scan, which the dashboard only suggests.

Compare a query’s explain plans over time to confirm whether the planner switched from an index scan to a sequential scan, which the dashboard only suggests.

  • Inspect live sessions to see current activity, including long-running transactions that prevent vacuum from reclaiming dead rows.

Inspect live sessions to see current activity, including long-running transactions that prevent vacuum from reclaiming dead rows.

  • Correlate slow queries with application traces to confirm they’re causing increased checkout latency.

Correlate slow queries with application traces to confirm they’re causing increased checkout latency.

To confirm the root cause and get a fix, use Bits Chat. It analyzes query metrics, execution plans, and health signals, then provides a root cause analysis with recommended remediation steps. If the fix requires a new index or query rewrite, Bits Chat provides the SQL for your review and implementation. It does not execute any changes on your database. To request access,

Start monitoring databases with OpenTelemetry-native components

Datadog’s OTel integrations enable OTel users to use native monitoring dashboards and collect database metrics. Native support for PostgreSQL, Redis, and MongoDB simplifies dashboard setup and maintenance, so users can understand database health and quickly address performance issues.

The OTel integrations documentation lists supported integrations and provides guidance on collecting metrics. The metrics mapping reference explains how supported metrics correspond to Datadog metrics, including any attribute filters or transformations.

Datadog’s OTel integrations use metrics from community-maintained OTel receivers. If you use an OTel receiver that does not have a native Datadog integration, you can request an integration to help us prioritize support. To analyze PostgreSQL queries with data from the OTel Collector, sign up for the Database Monitoring with OpenTelemetry Preview. If you’re new to Datadog,

← All articles

What this article says

More in Data & Analytics

All →
Everyone Gets Breached. Plan for What Happens Next.
Couchbase

Everyone Gets Breached. Plan for What Happens Next.

Everything you need to know about PostHog Cloud EU
Posthog

Everything you need to know about PostHog Cloud EU

Visual playback of the user journey: Introducing Session Replay in Grafana Cloud Frontend Observability
Grafana Labs

Visual playback of the user journey: Introducing Session Replay in Grafana Cloud Frontend Observability

Your AI agents started acting. Did your governance?
Collibra

Your AI agents started acting. Did your governance?

4 artists debut works from our first Dataland residency
Google Analytics

4 artists debut works from our first Dataland residency

CellGemma: Predicting cell responses to help accelerate cancer research
Google Analytics

CellGemma: Predicting cell responses to help accelerate cancer research

More from Datadog

Catch stale AWS Glue data before it impacts your business
Datadog

Catch stale AWS Glue data before it impacts your business

Fix infrastructure issues automatically with Bits Autonomous Operations
Datadog

Fix infrastructure issues automatically with Bits Autonomous Operations

Bringing application context to full-host eBPF profiling
Datadog

Bringing application context to full-host eBPF profiling

Detect and diagnose OTel telemetry loss in Fleet Automation
Datadog

Detect and diagnose OTel telemetry loss in Fleet Automation

Move to OpenTelemetry at your own pace with Datadog OpenTelemetry (DDOT)
Datadog

Move to OpenTelemetry at your own pace with Datadog OpenTelemetry (DDOT)

Add vertical rightsizing to HPA-scaled Kubernetes workloads
Datadog

Add vertical rightsizing to HPA-scaled Kubernetes workloads