Database Monitoring Fundamentals Certification / 01 / 05
Datadog Database Monitoring Fundamentals
What this domain covers
This domain covers what DBM is a tool for looking at. There are four pillars. First, the supported scope: self-hosted and managed versions of Postgres, MySQL, SQL Server, Oracle, MongoDB, and more. Second, how it differs from the standard integrations: it looks at the query level rather than the overall state of the database. Third, the telemetry types: metrics, Query Metrics, Query Samples, and explain plans, along with their retention periods. Fourth, normalization and obfuscation, and correlation with APM. The exam asks questions such as "Which data do you use to see this information?" and "What is sent to Datadog?" Figures are based on the official documentation as of October 2026.
Topics listed in the official guide
- Identify supported databases and core DBM capabilities
- Explain DBM use cases and feature differences
- Interpret database health indicators
- Understand DBM telemetry data types (metrics, Query Metrics, Query Samples)
- Explain query normalization and obfuscation
- Describe DBM and APM correlation
Key points
- DBM supports self-hosted and managed versions of Postgres, MySQL, MariaDB, Oracle, SQL Server, MongoDB, Amazon DocumentDB, and ClickHouse.
- The standard integrations show database-wide indicators, while DBM shows query-level metrics, samples, wait events, explain plans, and blocking.
- DBM runs as a database check on top of the standard Agent. No dedicated agent is needed.
- Queries that differ only in their values are grouped into a single normalized query with the values replaced by ?, identified by query_signature.
- Bind parameters are obfuscated, but table and column names and SQL comments may not go through obfuscation.
- Query-level metrics cover the top 200 queries by total execution time per collection interval, and the rest are grouped into Other Queries.
- Retention is 15 months for Query Metrics and 15 days for Query Samples. Comparisons with older periods are done with Query Metrics.
- Query Samples is suited to finding rare but extremely slow executions that do not show up in metrics.
- Correlating with APM injects trace identifiers into DBM data, and there are three propagation modes: full, service, and disabled.
- Billing is based on the number of unique database hosts monitored and the number of normalized queries tracked. Check unit prices on the official pricing page.
Terms and concepts
How DBM differs from the standard integrations
The standard Postgres and MySQL integrations collect metrics that show the overall state of the database, such as connection counts, locks, and replication. Enabling DBM adds query-level metrics, snapshots of live and past queries, wait events, database load, explain plans, and blocking information. DBM is enabled by adding dbm: true to the same database check's configuration, so there is nothing to install separately from the standard integration.
- Database MonitoringProduct
- IntegrationsProduct
DBM telemetry types
DBM collects four main kinds of data: metrics (standard metrics such as mysql.queries.* and postgresql.queries.* that can be used in dashboards and monitors), Query Metrics (aggregates of counts, time, and rows per normalized query), Query Samples (point-in-time snapshots of running and recently finished queries), and explain plans (the steps and estimates of how the database executes a query). Remembering which data answers which question keeps you from getting lost in analysis questions.
- MetricGlossary
- Explain PlanGlossary
Normalized queries and query_signature
Queries that differ only in their values, such as WHERE id = 13345 and WHERE id = 24435, are grouped into a single normalized query (query digest) with the values replaced by ?. DBM views show performance trends at this level. A normalized query is identified by its hash, query_signature, and because the query tag is truncated at 200 characters, use query_signature when narrowing a long query down to one.
- TagGlossary
Scope of obfuscation
The Agent obfuscates all bind parameters, so values such as passwords and personal information do not appear in Query Metrics, Query Samples, or explain plans. On the other hand, schema information such as table, column, and index names is not obfuscated. SQL comments may also be sent without going through obfuscation, so your practices must avoid writing sensitive values in comments. If you collect database logs separately, logs can contain full SQL, so set up protection rules on the log side.
- Log ManagementProduct
The top 200 and Other Queries
Query-level metrics are collected for each collection interval (10 seconds by default) for the top 200 normalized queries by total time spent executing on the host. Metrics for queries outside the top are counted together as Other Queries. A query that enters and leaves the top depending on the time period appears as its own row at some times and is counted in Other Queries at others.
- Database MonitoringProduct
Retention periods
Query Metrics is retained for 15 months and Query Samples for 15 days. Comparisons with several months ago, such as before and after a release, are done with the Query Metrics trend, while individual execution samples and explain plan details are investigated within the last 15 days. Retention is how long Datadog stores data and has nothing to do with load on the database.
- RetentionGlossary
The Databases page and host details
The Databases page is a view for assessing the health and activity of database hosts in a list. You sort by triggered alerts or query volume to prioritize, and in the host details you can view tabs such as Active Connections (queries running right now), Top Queries, Blocking Queries, Calling Services, Configuration, and Schema. This is the entry point for an overview, and you move to Query Samples when examining individual executions.
- HostGlossary
Correlating DBM and APM
When the APM SDK attaches trace identifiers to queries, they are injected into DBM data collection, so you can see database information in APM views and APM information in DBM views. There are three propagation modes: service, which sends only the service name; full, which sends all trace information; and disabled, which sends nothing. Note that service names passed in SQL comments remain in the database and can be read by third parties with access to the database.
Agent overhead and how billing is counted
The DBM Agent's default settings are described as conservative, staying under 1% of both database query execution time and CPU for most workloads. Billing records the number of unique database hosts monitored with DBM every hour and is also based on the total number of normalized queries tracked. Under a high-water mark plan, the maximum of the hourly counts after excluding the top 1% becomes the billed count. Check unit prices on the official pricing page.
- Datadog AgentProduct
Check your understanding
Check what you have learned with 5 questions