# dt-dql-essentials

> Claude/Codex skill by [@dynatrace](https://omgskills.com/library/dynatrace/index.md) · 164 stars · Updated 2026-10-01

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). Trigger: "write/build/fix a DQL query", "DQL syntax", "query logs/spans/metrics", "create a timeseries", "optimize my DQL", "make my query faster/cheaper", "reduce DQL cost/consumption/scanned data", "keep DQL cost under control". Do NOT use to explain an existing query or answer product questions. For MONITORING a tenant's ACTUAL query consumption/billing (how much queries cost, who scanned most, cost trends) use dt-platform-costs — this tunes the query text, not billing data.

Tags: agent-skills, ai-agents, claude-code, devops, dql, dynatrace, mcp, observability

## Install

```sh
git clone https://github.com/Dynatrace/dynatrace-for-ai /tmp/dynatrace-for-ai && ln -s /tmp/dynatrace-for-ai/skills/dt-dql-essentials ~/.claude/skills/dt-dql-essentials
```

## From README

DQL Essentials Skill DQL is a pipeline-based query language. Queries chain commands with | to filter, transform, and aggregate data. DQL has unique syntax that differs from SQL — load this skill before writing any DQL query.

## Links

- HTML page: https://omgskills.com/skills/dynatrace/dynatrace-for-ai/dt-dql-essentials/
- GitHub: https://github.com/Dynatrace/dynatrace-for-ai
- Author: [@dynatrace](https://omgskills.com/library/dynatrace/index.md)

## More from this repo

- [dt-obs-analytics](https://omgskills.com/skills/dynatrace/dynatrace-for-ai/skills/dt-obs-analytics/index.md) — Used to analyze dashboards and notebooks using Davis analyzers — anomaly detection, novelty scoring, and correlation.
   - [@dynatrace](https://omgskills.com/library/dynatrace/index.md) · 167 stars
- [dt-obs-compliance-assistant](https://omgskills.com/skills/dynatrace/dynatrace-for-ai/skills/dt-obs-compliance-assistant/index.md) — Used to monitor and investigate EU DORA compliance posture using Dynatrace Compliance Assistant.
   - [@dynatrace](https://omgskills.com/library/dynatrace/index.md) · 167 stars
- [dt-obs-ext-monitors](https://omgskills.com/skills/dynatrace/dynatrace-for-ai/skills/dt-obs-ext-monitors/index.md) — 3rd-party test and monitor result ingestion into Dynatrace Grail via the platform events ingest API...
   - [@dynatrace](https://omgskills.com/library/dynatrace/index.md) · 167 stars
