dt-dql-essentials
Core DQL syntax, pitfalls, query patterns, and query optimization. Load to write, build, fix, or OPTIMIZE a DQL query — prevents syntax errors and makes queries faster, more efficient, and cheaper (less data scanned = lower query consumption/cost per run). Covers fetch commands, data models, field namespaces, time alignment, entity/smartscape patterns, metric discovery, and performance/cost optimization (filter early, bucket filters, short time ranges, field selection, sampling, cardinality). Tr
Security Assessment
About dt-dql-essentials
The dt-dql-essentials skill is a comprehensive reference and guidance package for writing, building, fixing, and optimizing Dynatrace Query Language (DQL) queries. DQL is a pipeline-based language that chains commands with the pipe operator to filter, transform, and aggregate observability data, and its syntax differs meaningfully from SQL. The skill exists to prevent common syntax errors and to make queries faster, more efficient, and cheaper by reducing the volume of data scanned per run — directly lowering query consumption and cost.
The skill is organized as an index that routes tasks to detailed reference files. It covers fetch commands, data models, field namespaces, time alignment, entity and Smartscape topology patterns, metric discovery, and a large catalog of DQL functions grouped by category — arrays, aggregation, conversion, string, time, mathematical, cryptographic, network, iterative, timeseries, and more. A dedicated optimization reference teaches cost-reducing techniques such as filtering early, using bucket filters, keeping time ranges short, selecting only needed fields, sampling, and managing cardinality. Additional references cover summarization and makeTimeseries bucketing, iterative array expressions, conditional logic helpers, and operator subtleties like the `in` subquery operator and full time-alignment unit tables.
It targets Dynatrace platform users, SREs, observability engineers, and analysts who query logs, spans, and metrics or build timeseries and dashboards. The documentation explicitly scopes itself: it is for authoring and tuning query text, not for explaining existing queries or monitoring a tenant's actual billing consumption, which it defers to a separate costs skill. It is a read-only, Apache-2.0 licensed knowledge resource with no executable behavior of its own.
FAQ
When should I load this skill versus a related one?
Load it to write, build, fix, or optimize DQL query text. Do not use it to explain an existing query or answer general product questions, and for monitoring a tenant's actual query consumption or billing use the separate dt-platform-costs skill instead — this one tunes the query, not billing data.
How does it help reduce query cost?
Its optimization reference documents techniques that reduce scanned data: filtering early in the pipeline, using bucket filters, keeping time ranges short, selecting only needed fields, sampling, and controlling cardinality. Less data scanned means lower query consumption and cost per run.
What reference material is included?
It provides a semantic dictionary of field names and namespaces, detailed function specs grouped by category (array, aggregation, string, time, mathematical, cryptographic, network, iterative, timeseries and more), commands, data types, operators, Smartscape topology navigation, and summarization patterns.
Do I need to read every reference file?
No. The skill uses a routing index so you load only the reference relevant to your task, such as the optimization file for tuning or the summarization file for makeTimeseries bucketing patterns.
All Files
32 filesInstall dt-dql-essentials
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
dynatrace/dynatrace-for-ai