Try it free

Upgrade from classic database services to database query monitoring

  • Latest Dynatrace
  • Upgrade guide
  • 7-min read
  • Published Nov 20, 2026

In Dynatrace Classic, every database a service calls becomes a database service entity—a standalone object with its own metrics, management zone membership, and alert configuration. In Latest Dynatrace, every database call is a span stored in Grail and attached directly to the calling service as a dependency.

This guide covers application-side database monitoring, which is the data that Dynatrace captures through traces and database queries. It does not cover database monitoring through extensions.

During the upgrade, both classic and latest monitoring approaches run side by side. Classic database service entities continue to work while you migrate, and distributed trace data remains accessible as before, so you can upgrade at your own pace.

Why upgrade?

In Latest Dynatrace, every database call is a span. Database spans are queryable with DQL, stored in Grail, and carry the full context of the service that made the call. This model brings the following benefits:

  • Full DQL queryability: Trend response times over the full retention period, join database call data with deployment events or infrastructure metrics, and build any dashboard tile you need with a single query.
  • Automatic infrastructure context: Every data point inherits the Kubernetes namespace, cluster, host group, and primary Grail fields of the calling service, with no extra tagging required.
  • Simpler team visibility: Database spans automatically carry the same primary tags as the calling service. A segment that scopes a team's view to their services automatically includes all their database query data, with no need for separate database tagging.

Classic database service entities are not represented in Grail and are not queryable with DQL. They generate database-level alerts that are often noisy and non-actionable.

What is new?

The following table maps each classic database capability to its replacement in Latest Dynatrace.

In Dynatrace ClassicIn Latest Dynatrace
Database service entity page, with response time, failure rate, and throughputIn Services Services, the Database queries views provide richer query-level detail and are queryable with DQL. You get a per-service view and a cross-service view that shows all queries executed across your services.
Classic built-in database metrics (builtin:database.*)Span attributes and database metrics, which are stored in Grail and queryable with DQL over the full retention period
Database service entity in Smartscape and topology viewsDatabase nodes in Service Map with edges to calling services and infrastructure context
Management zone-based database visibility (tag database entity, add to a management zone)Segments (no database tagging required; spans inherit the calling service's context automatically)
Backtrace view on the database entityBacktrace view per query (accessible via Services Services)
Response time and failure rate on the database entityMetric-based DQL query and span-based DQL query (average duration and error rate grouped by db.namespace and db.system)
Service flow and distributed traces through a database serviceDatabase nodes and edges in Service Map and Distributed Tracing

What is changing?

The new model eliminates several classic maintenance tasks.

  • Database service entity: The database is now a dependency of the calling service. The database name lives on spans and the metric as the db.namespace and db.system dimensions, which allow filtering and grouping by those directly.
  • Database-level management zone membership and tagging: Database spans inherit the primary fields and tags of the calling service. Your service-level segments automatically include the associated database query data.

What will you do?

You'll confirm that database spans are collected, set up a segment for team-scoped visibility, explore database queries and backtraces in Services Services, and rebuild any performance dashboard tiles using DQL.

Before you begin

Prior knowledge

This guide assumes the following background knowledge.

  • You understand how Latest Dynatrace models database dependencies as service spans. For details, see Database query monitoring in Services.
  • You know how segments work and how to create one for your team. For details, see Segments.

New concepts

These concepts are new in Latest Dynatrace and appear throughout this guide.

Segments

Scoping mechanism in Latest Dynatrace. Because database spans inherit the calling service's context, a segment over your services automatically scopes the Database queries view and Service Map in Services Services to show only the databases your services call. No database-level tagging is needed.

Database metrics

Database metrics are emitted automatically alongside span ingestion. They are stored in Grail and queryable with DQL over the full retention period. For details, see Database metrics.

Unmonitored database nodes

Databases visible from span data, but for which no entity exists (because no database extension or cloud monitoring is activated). Unmonitored database nodes appear in the Service Map with a guided hint to activate deep monitoring.

Database spans are visible environment-wide by default, which allows for end-to-end trace analysis across service boundaries. Restricting access to spans by team boundary through permissions fragments transaction flows and prevents callers from seeing the full trace. Segments scope what you see without restricting access, so use them to scope views in Services Services.

How to upgrade

Complete these steps to upgrade from classic database services to database query monitoring.

Step 1: Confirm database span collection

First, you need to confirm that Dynatrace collects database spans for your services.

  1. Go to Services Services > Explorer.

  2. Select a monitored service, and go to the Database queries tab in the service details panel.

  3. Verify that the Database queries tab shows the required data.

    If any queries appear, database client spans are collected, and you can proceed to the next step.

Step 2: Check which databases are monitored Optional

In the Service Map, you can check which databases are monitored through a database extension or cloud integration and which appear based on span data only.

To identify monitored and unmonitored databases in the Service Map

  1. Go to Services Services > Explorer (Early Access).

  2. Select Map in the view toggle located in the upper-right corner above the service list.

  3. In the filter panel in the upper-left corner of the service map, select Nodes > Databases.

  4. Select a database node to highlight it on the service map.

    • Monitored databases (a database extension is used or cloud monitoring is deployed) appear as database nodes with drill-down options to either Databases Databases or Clouds Clouds. For details, see Drill down to traces, logs, and more.
    • Unmonitored databases are detected from span data and appear as database nodes. Only span-derived query data is available, with a guided hint to activate monitoring via a database extension or cloud monitoring integration.

Step 3: Set up team-scoped visibility

In Latest Dynatrace, you don't tag database entities or add them to management zones. Because database spans automatically inherit the primary fields of the calling service, a segment over your team's services gives that team a fully scoped view of their database query data with no database-level configuration.

Create or update a segment that covers the calling services your team owns. The Database queries view and the Service Map in Services Services automatically reflect the segment, showing only the databases that the segment's services call.

For detailed instructions, see Segments and Use segments to scope Services and Smartscape apps.

Step 4: Explore database queries and backtraces

The Database queries view in Services Services shows every database a service calls, with query count, average duration, and error rate per statement. You can filter by db.system and db.namespace for a cross-service view of a specific database.

To identify which services and entry points drive a specific query, go to the Backtrace view, which breaks down throughput, error count, and average duration by caller and provides direct navigation to the related traces. For details, see Discover upstream callers with Backtrace.

Step 5: Build performance dashboard tiles

Span data and database metrics give you full DQL access to database performance across any time range, service, or database technology. Pin the required DQL queries to a dashboard or a notebook to replace classic database entity chart tiles.

For example DQL queries, see Query database data with DQL.

To query relationships directly, for example, to find all services calling an AWS RDS instance without relying on span or metric data, use Smartscape traversal queries. See Explore the service entity in Smartscape on Grail for examples.

After you upgrade

Confirm that your classic database service entities are no longer needed before switching them off.

  • Go to Services Services > Explorer, select the required service, and confirm the Database queries tab shows the expected databases with non-zero call counts. Do that for each service that called a classic database service.
  • Check that the segment you set up gives each team the expected scoped view of their databases.
  • Compare query counts. Span-based counts are typically higher than classic counts because they're collected independently per service, regardless of trace completeness. This is expected.

When you're confident in coverage, remove the references to classic database service entities from management zones and alerting rules.

FAQ

Check the answers to common questions about the differences between classic and latest database query monitoring.

Why are span-based query counts higher than classic database service counts?

Classic database service metrics are derived from distributed traces and only count calls that appear in a complete, instrumented trace. In environments where not every service is instrumented, the reported count is lower than the actual number of database calls.

In Latest Dynatrace, span-based queries and the database metrics are collected per service independently of trace completeness. The result is a more accurate picture of actual database load, including calls from services that were not fully instrumented in Dynatrace Classic.

Next steps

To go deeper on database monitoring in Latest Dynatrace, see the following pages:

  • Database query monitoring in Services for the full explanation of how services work with databases, including data sources and DQL query examples.
  • Explore service topology with Service Map in Services, including database nodes.
  • Services app for analyzing service performance and database queries in Services Services.
Related tags
Application ObservabilityServicesServices