/dynatrace:dt-obs-hostsfrom dynatrace
Queries host and process metrics (CPU, memory, disk, network, containers) for infrastructure monitoring, inventory, troubleshooting, cost analysis, and anomaly detection. Activated by phrases like 'show hosts', 'CPU usage', 'high memory'.
Ships in dynatrace. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Monitor and manage host and process infrastructure including CPU, memory, disk, network, and technology inventory.
Use this skill when the user needs to:
Cross-source join required: If the query must combine host data with logs or other telemetry sources (e.g. "show logs from Linux hosts with their IP addresses") → also read
dt-dql-essentials/references/smartscape-topology-navigation.mdbefore writing the query.
dt.host.cpu.*, dt.host.memory.*, dt.host.disk.*, dt.host.net.*dt.process.cpu.*, dt.process.memory.*, dt.process.io.*, dt.process.network.*dt.cost.costcenter, dt.cost.productDiscover hosts, classify by OS/cloud, inventory resources.
smartscapeNodes "HOST"
| fieldsAdd os.type, cloud.provider, host.logical.cpu.cores, host.physical.memory
| summarize host_count = count(), by: {os.type, cloud.provider}
| sort host_count desc
OS Types: LINUX, WINDOWS, AIX, SOLARIS, ZOS
→ For cloud-specific attributes, see references/inventory-discovery.md
Monitor CPU, memory, disk, network across hosts.
timeseries {
cpu = avg(dt.host.cpu.usage),
memory = avg(dt.host.memory.usage),
disk_free = avg(dt.host.disk.free)
}, by: {dt.smartscape.host}
| fieldsAdd host_name = getNodeName(dt.smartscape.host), disk_used = 100 - disk_free[]
| filter arrayAvg(cpu) > 80 or arrayAvg(memory) > 80
| sort arrayAvg(cpu) desc
High utilization threshold: 80% warning, 90% critical
Key CPU Metrics:
dt.host.cpu.usage — Total CPU utilization (0-100%)dt.host.cpu.idle — CPU idle time (inverse of usage; useful for anomaly detection)dt.host.cpu.user — CPU time in user modedt.host.cpu.system — CPU time in kernel modedt.host.cpu.iowait — CPU waiting for I/O (Linux only)→ For detailed CPU analysis, see references/host-metrics.md
→ For memory breakdown, see references/host-metrics.md
timeseries disk_free_pct = avg(dt.host.disk.free), by: {dt.smartscape.host}
| fieldsAdd host_name = getNodeName(dt.smartscape.host)
| fieldsAdd free_pct = arrayAvg(disk_free_pct),
avg_disk_used = 100 - arrayAvg(disk_free_pct)
| sort free_pct desc
| limit 10
Identify top resource consumers at process level.
timeseries {
cpu = avg(dt.process.cpu.usage),
memory = avg(dt.process.memory.usage)
}, by: {dt.smartscape.process}
| fieldsAdd process_name = getNodeName(dt.smartscape.process)
| filter arrayAvg(cpu) > 50
| sort arrayAvg(cpu) desc
| limit 20
→ For process I/O analysis, see references/process-monitoring.md
→ For process network metrics, see references/process-monitoring.md
Discover and track software technologies and versions.
smartscapeNodes "PROCESS"
| fieldsAdd process.software_technologies
| expand tech = process.software_technologies
| fieldsAdd tech_type = tech[type], tech_version = tech[version]
| summarize process_count = count(), by: {tech_type, tech_version}
| sort process_count desc
Common Technologies: Java, Node.js, Python, .NET, databases, web servers, messaging systems
→ For version compliance checks, see references/inventory-discovery.md
Map listening ports to services for security and inventory.
smartscapeNodes "PROCESS"
| filter isNotNull(port) and arraySize(port) > 0
| fieldsAdd port, dt.process_group.detected_name
| expand listen_port = port
| summarize process_count = count(), by: {listen_port, dt.process_group.detected_name}
| sort toLong(listen_port) asc
| limit 50
Well-known ports (values are numeric — filter with an unquoted integer, listen_port == 22, not "22"): 80 (HTTP), 443 (HTTPS), 22 (SSH), 3306 (MySQL), 5432 (PostgreSQL)
→ For comprehensive port mapping, see references/inventory-discovery.md
Track container distribution and K8s workload types.
smartscapeNodes "CONTAINER"
| fieldsAdd k8s.cluster.name, k8s.namespace.name, k8s.workload.kind
| summarize container_count = count(), by: {k8s.cluster.name, k8s.workload.kind}
| sort k8s.cluster.name, container_count desc
Workload Types: deployment, daemonset, statefulset, job, cronjob
Note: Container image names/versions NOT available in smartscape.
→ For K8s version tracking, see references/container-monitoring.md
→ For container lifecycle, see references/container-monitoring.md
Calculate infrastructure costs by cost center.
smartscapeNodes "HOST"
| fieldsAdd dt.cost.costcenter, host.logical.cpu.cores, host.physical.memory
| filter isNotNull(dt.cost.costcenter)
| fieldsAdd memory_gb = toDouble(host.physical.memory) / 1024 / 1024 / 1024
| summarize
host_count = count(),
total_cores = sum(toLong(host.logical.cpu.cores)),
total_memory_gb = sum(memory_gb),
by: {dt.cost.costcenter}
| sort total_cores desc
→ For product-level cost tracking, see references/inventory-discovery.md
Correlate host and process metrics for cross-layer analysis.
timeseries {
host_cpu = avg(dt.host.cpu.usage),
host_memory = avg(dt.host.memory.usage),
process_cpu = avg(dt.process.cpu.usage)
}, by: {dt.smartscape.host, dt.smartscape.process}
| fieldsAdd
host_name = getNodeName(dt.smartscape.host),
process_name = getNodeName(dt.smartscape.process)
| filter arrayAvg(host_cpu) > 70
| sort arrayAvg(host_cpu) desc
Health scoring: Critical if any resource >90%, warning if >80%
→ For multi-resource saturation detection, see references/host-metrics.md
→ For space, I/O, latency, inode, and fill-prediction queries, see references/disk-monitoring.md.
Shared disks. A DISK-* Smartscape ID identifies a logical storage device —
several can map to one physical device. Read disk.remote_disk_id (a property of the disk, constant across
its mounts) straight from Smartscape for the Smartscape disk entities the problem fired on — a shared
non-zero value means one physical disk mounted in several places. Filter smartscape ids with
matchesValue (not in, which rejects the smartscape-id type):
smartscapeNodes "DISK"
| filter matchesValue(id, array("<DISK-ID-1>", "<DISK-ID-2>"))
| filter isNotNull(`disk.remote_disk_id`) and `disk.remote_disk_id` != 0
| summarize mounts = collectDistinct(id), mount_count = countDistinct(id), by: {`disk.remote_disk_id`}
mount_count is how many
of the queried mounts share it. Other mounts may not have alerted — the Fan-Out query below
enumerates the full set.disk.remote_disk_id of 0 (filtered out) is a local, non-shared disk.→ See references/disk-monitoring.md for the corrections that follow — cross-host attribution, blast radius, and environment-wide shared disk discovery.
Count and list hosts by OneAgent monitoring mode, version, or cloud region.
ONEAGENT entity: OneAgent is a separate smartscape entity type (smartscapeNodes "ONEAGENT"). Access it by traversing backward from HOST via the monitors edge (the edge runs ONEAGENT → HOST, so HOST→ONEAGENT is direction: backward).
Key ONEAGENT fields:
dt.agent.monitoring_mode — monitoring coverage level: FULL_STACK / INFRASTRUCTURE / DISCOVERYdt.agent.module.version — installed version string, formatted <major>.<minor>.<patch>.<build>Count by mode and version (for upgrade planning) — drop either field from by: for a single-dimension breakdown (mode only, or version only):
smartscapeNodes "HOST"
| traverse edgeTypes: {monitors}, targetTypes: {ONEAGENT}, direction: backward
| fieldsAdd oa_mode = `dt.agent.monitoring_mode`, oa_version = `dt.agent.module.version`
| summarize host_count = count(), by: {oa_mode, oa_version}
| sort host_count desc
Monitoring modes: FULL_STACK (full code-level monitoring + infrastructure), INFRASTRUCTURE (infrastructure metrics only, no code-level monitoring), DISCOVERY (topology discovery and basic host monitoring)
→ For listing hosts by mode/version, see references/inventory-discovery.md
When the user asks for data retrieval or a DQL query (e.g., "show me top hosts by CPU"), include the DQL query in the response alongside the results. Users want to see and reuse the query — it is the deliverable, not just a means to get results.
When the user asks for analysis (anomaly detection, forecasting, seasonality), the analysis results are the deliverable. Focus on presenting findings clearly:
getNodeName(dt.smartscape.host) or the
get-entity-name tool.Host metric queries often serve as inputs to analytical tools (anomaly detection, forecasting, seasonality analysis). This skill helps construct the right DQL query; the actual analysis is performed by dedicated tools.
When users ask about "unusual behavior", "anomalies", "spikes", or "sudden changes" in host metrics, the workflow is:
Choosing between detectors:
adaptive-anomaly-detector — use when the user asks about magnitude: "spikes",
"abrupt changes", "values that went above normal", "sudden jumps". It answers "did this
metric cross an unexpected threshold?" and reports alert durations and peak values.timeseries-novelty-detection — use when the user asks about behavioral change:
"unusual patterns", "something changed", "trends", "new behavior". It answers "did the
shape of the signal change?" without implying a specific threshold was crossed.Response format for anomaly results: Include both the host name (resolved via
getNodeName(dt.smartscape.host) or get-entity-name) and the host entity ID alongside timestamps and values.
Entity IDs alone are opaque to users; names alone prevent follow-up queries.
Novelty type selection rule: When using novelty detection, set
analysisNoveltyType to only [SPIKE, CHANGE_IN_VALUES, TREND_IN_VALUES] by default.
EXCLUDE GAP_WITH_MISSING_VALUES and CHANGE_IN_MISSING_VALUES unless the user
explicitly asks about data gaps or monitoring coverage. Data gaps are infrastructure
issues, not metric behavior anomalies — reporting them when the user asks about CPU
or memory patterns is incorrect.
Queries for analysis tools should use simple timeseries format with a single
aggregated metric and appropriate time range:
timeseries avg(dt.host.cpu.idle), by: {dt.smartscape.host}
timeseries avg(dt.host.memory.usage), by: {dt.smartscape.host}
Avoid adding filters or field transformations that reduce the data — the analysis tools work best with complete timeseries data.
When users ask to "predict", "forecast", or "estimate future" host metrics:
The forecast horizon (how far ahead to predict) and the historical window (how much past data the model trains on) are independent. A request like "forecast the next 2 hours" sets the horizon to 2h — it says nothing about the lookback. Always use at least 7 days of historical data regardless of how short the forecast horizon is. Too few training data points cause the forecast model to fail and fall back to raw historical values.
timeseries avg(dt.host.cpu.usage), by: {dt.smartscape.host}
When users ask about "seasonality", "weekly patterns", or "recurring behavior":
Response format for seasonal analysis: When presenting results, include:
This skill covers host and process infrastructure metrics only. If the user asks
about service-level metrics (request rate, response time, error rate, service calls per
minute, throughput), use dt-obs-services instead — even when the question involves
forecasting or anomaly detection of those metrics.
Redirect these to dt-obs-services: "service calls per minute", "request rate",
"response time by service", "error rate by endpoint", "service throughput forecast".
Use smartscapeNodes to discover and classify entities.
smartscapeNodes "HOST"
| fieldsAdd <attributes>
| filter <conditions>
| summarize <aggregations>
Use timeseries to analyze metrics over time.
timeseries metric = avg(dt.host.<metric>), by: {dt.smartscape.host}
| fieldsAdd <calculations>
| filter <thresholds>
Enrich data with entity attributes. After lookup, reference fields with lookup. prefix.
timeseries cpu = avg(dt.host.cpu.usage), by: {dt.smartscape.host}
| lookup [
smartscapeNodes HOST
| fields id, cpuCores, memoryTotal
], sourceField:dt.smartscape.host, lookupField:id
| fieldsAdd cores = lookup.cpuCores, mem_gb = lookup.memoryTotal / 1024 / 1024 / 1024
max() for limits; avg() for trends| limit NgetNodeName(dt.smartscape.host) for human-readable host names; getNodeName(dt.smartscape.process) for processes/ 1024 / 1024 / 1024; round with round(value, decimals: 1)Time windows: Real-time: 5-15 min | Trends: 1-7 days | Capacity planning: 30-90 days
Known metric/field limitations (iowait Linux-only, generic tags unpopulated, container image
names absent) are listed with their fixes in the Troubleshooting table below.
| Problem | Cause | Solution |
|---|---|---|
No hosts returned from smartscapeNodes "HOST" | Missing time range or OneAgent not deployed | Verify OneAgent is installed; add a time range to the query |
tags field always empty | Generic tags not populated in smartscape | Use specific tag namespaces: tags:azure[*], tags:environment, dt.cost.costcenter |
| Memory values in bytes are unreadable | Raw metric unit is bytes | Divide by 1024 / 1024 / 1024 and use round(value, decimals: 1) |
dt.host.cpu.iowait returns no data | Metric is Linux-only | Check os.type; iowait is unavailable on Windows, AIX, Solaris |
| Container image names missing | Not available in smartscape | Use k8s.object parsing for image details; see dt-obs-kubernetes skill |
process.software_technologies is empty | Process not monitored by deep code-level monitoring | Verify OneAgent deep monitoring is enabled for the process group |
dt.agent.monitoring_mode always null | Field name uses underscore, not dot | Use dt.agent.monitoring_mode; dt.agent.monitoring.mode (dot) always returns null |
gcp.project.id always null | Wrong field name used | GCP project uses two dots: gcp.project.id not underscore, gcp.project_id always returns null |
This skill uses progressive disclosure. Start here for 80% of use cases. Load reference files for detailed specifications when needed.
disk.remote_disk_idWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dynatrace/dynatrace-for-ai --plugin dynatrace38 skills in this plugin
/dt-alertingEnd-to-end Dynatrace alerting lifecycle — anomaly detector setup and model selection (static threshold, adaptive baseline, seasonal baseline), alert event storage in Grail, problem grouping and denoising by root cause analysis, and workflow-based notification routing (email, Slack, ServiceNow, webhook). Use when configuring alerting, choosing between detector types, querying alert event history, understanding why alerts merged into a problem, or setting up problem-triggered notifications./dt-app-dashboardsWork with Dynatrace dashboards - create, modify, query, and analyze dashboard JSON including tiles, layouts, DQL queries, variables, and visualizations./dt-app-notebooksWork with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations.Other plugins' skills for the same job