Homeโ€บ๐Ÿ—๏ธ Track 1: Foundationโ€บModule 32 min read ยท 4/21

Your First Data

Hands-on

Your First Data

With OneAgent installed, Dynatrace automatically discovers your infrastructure. Let's explore what it found.

Hosts

Every machine with OneAgent appears as a host entity. Query it with DQL:

fetch dt.entity.host
| fields entity.name, monitoringMode, state, tags

๐Ÿ›  Try it: Open a Notebook (Ctrl+K โ†’ "Notebooks" โ†’ Create new) โ†’ Add a DQL section โ†’ Paste the query above โ†’ Run it. You'll see your hosts with their monitoring mode and state.

Processes

OneAgent discovers every process running on your hosts:

fetch dt.entity.process_group
| fields entity.name, softwareTechnologies
| limit 10

Each process group shows the detected technology (Java, Node.js, Go, nginx, etc.).

Services

Services are auto-detected from process communication patterns:

fetch dt.entity.service
| fields entity.name, serviceType
| limit 10

Your First Metric

Metrics are time-series data. The timeseries command queries them:

timeseries avg(dt.host.cpu.usage), by:{dt.entity.host}

This returns CPU usage over time for each host. In a Notebook, it automatically renders as a line chart.

Your First Log Query

fetch logs
| filter loglevel == "ERROR"
| fields timestamp, content, loglevel
| sort timestamp desc
| limit 10

โš ๏ธ The field is loglevel (one word), NOT log.level. This is the most common DQL mistake for beginners.

Exploring the Schema

Don't know what fields are available? Use describe:

describe dt.entity.host

This lists every field and its data type. Works for any data object: logs, events, spans, bizevents, dt.entity.service, etc.

Data Objects Reference

Data Object              What's In It                    Example Query
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
dt.entity.host           Hosts (servers, VMs)            fetch dt.entity.host
dt.entity.service        Auto-detected services          fetch dt.entity.service
dt.entity.process_group  Process groups                  fetch dt.entity.process_group
dt.entity.application    RUM web applications            fetch dt.entity.application
logs                     Log records                     fetch logs
events                   Davis events and problems       fetch events
spans                    Distributed trace spans         fetch spans
bizevents                Business events                 fetch bizevents

๐Ÿ’ก Everything in Dynatrace is queryable with DQL. Metrics use timeseries, everything else uses fetch. You'll master both in Track 2.