
dt-migration
Migrate Dynatrace classic and Gen2 entity-based DQL to Smartscape equivalents
by dynatraceFree
Description
dt-migration is a Dynatrace agent skill that helps an AI agent rewrite older Dynatrace queries for the Smartscape model. It migrates classic and Gen2 entity-based DQL queries and query patterns to Smartscape-based equivalents, and does not cover asset-level migration. The agent first works out what a query is trying to do, because the strategy depends on that. For mass data queries such as timeseries, logs or metrics that filter with classicEntitySelector or with fetch dt.entity subqueries, it resolves entity conditions to raw data dimensions first and uses Smartscape only as a fallback. For pure entity list queries built on fetch dt.entity, smartscapeNodes is the only valid path. Before writing the final DQL, the agent loads the dt-dql-essentials skill so the result follows current syntax rules. Install: npx skills add https://github.com/dynatrace/dynatrace-for-ai --skill dt-migration…
Highlights
- Migrates classic and Gen2 entity DQL to Smartscape
- Classifies queries by purpose before rewriting
- Dimension-first strategy for mass data queries
- smartscapeNodes for entity list queries
- Works with the dt-dql-essentials skill
Ratings & Reviews
No ratings yet
Be the first to rate dt-migration.
People also visit
dt-migration FAQ
What does dt-migration do?
It migrates Dynatrace classic and Gen2 entity-based DQL queries and patterns to Smartscape-based equivalents.
Does it cover asset migration?
No. It focuses on Smartscape-oriented DQL migration only.
How does it choose a strategy?
It classifies the query into three situations: mass data filtered by entity conditions, mass data using an entity subquery, or a pure entity list query, and applies a different strategy to each.
How do I install it?
Run: npx skills add https://github.com/dynatrace/dynatrace-for-ai --skill dt-migration. It also expects the dt-dql-essentials skill to be loaded.
What were the security audit results?
On skills.sh: Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best dt-migration alternatives?
Popular alternatives to dt-migration include dtctl, prometheus-label-strategy and app-observability. See all dt-migration alternatives










