Loading...
Loading...
Predictive analytics for Dynatrace — time series forecasting with the timeseries-forecast tool, capacity saturation planning, trend and anomaly detection across hosts, services, and infrastructure.
npx skill4agent add dynatrace/dynatrace-for-ai dt-obs-predictive-analytics| # | Discipline | Use when … |
|---|---|---|
| 1 | Forecast and Prediction | Predicting future metric values for capacity planning, cost estimation, or proactive alerting |
| 2 | Detecting Changes | A metric shifted — find when the character of the signal changed, regardless of whether it crossed a limit |
| 3 | Detecting Violations | A metric is currently out of bounds — find entities that exceed or fall below an acceptable range |
| 4 | Timeseries Characteristics | Characterizing a signal's seasonality, noise level, and trend before further analysis |
| Question | Tool | Why |
|---|---|---|
| "Did this metric change in the last N hours?" | | Detects when the signal's character changed (spike, step, trend onset, variability shift) without requiring a known acceptable limit |
| "Which services spiked or dropped recently?" | | Finds the specific entities and timestamps where change occurred; returns empty for stable signals |
| "When did CPU start trending up?" | | Pinpoints the onset of a directional shift |
| "Which hosts are currently above 90% CPU?" | | Known fixed limit — fire alerts when exceeded |
| "Which services are currently above their usual load?" | | Learns the normal distribution from the data and flags sustained threshold violations |
| "Which services are high right now vs. their weekly pattern?" | | Accounts for time-of-day/day-of-week patterns before deciding what is anomalous |
timeseries-novelty-detectionadaptiveseasonalstaticPitfall: Runningon a broad fleet to answer "which service changed load?" typically flags every service that has any variation, producing low-signal results. Useadaptive-anomaly-detectorfirst to identify entities where the load character genuinely shifted, then use the anomaly detectors to measure the severity of those specific signals.timeseries-novelty-detection
timeseries-forecastadaptive-anomaly-detectorseasonal-baseline-anomaly-detectorstatic-threshold-analyzertimeseries-novelty-detectionexecute-dql| Column | Content |
|---|---|
| Rank | 🥇 🥈 🥉 ordered by urgency or magnitude |
| Signal / Entity | Metric name and entity or dimension |
| Last Actual | Most recent non-null value from the historical series |
| Forecast | Point forecast at the end of the horizon |
| Range | Lower – Upper confidence band at the same horizon point |
| Trend | % change from Last Actual to Forecast: 🔴 >+20% / 🟠 +5–20% / 🟢 ±5% stable / 🔵 −5–20% declining / ⚫ <−20% sharp drop |
| Action | ✅ No action / ⚠️ Monitor / 🔴 Act now |
forecasttimeseries-forecastreferences/forecasting-analyzer.mdtimeseriesarrayLast(arr)arrayFirst(arr)(arrayLast - arrayFirst) / number_of_intervalsfilter isNotNull(field)toLong()Longdt.smartscape.*dt.entity.*dt.smartscape.*by:{}timeseries cpu = avg(dt.host.cpu.usage), from: now()-24h, interval: 1h, by: {dt.smartscape.host}
| fieldsAdd moving_avg = arrayMovingAvg(cpu, 4)
| fieldsAdd current = arrayLast(cpu)
| fieldsAdd trend = arrayLast(cpu) - arrayFirst(cpu)
| filter isNotNull(current)
| sort trend desc
| limit 20
| fields dt.smartscape.host, current, trend, moving_avgtimeseries cpu = avg(dt.host.cpu.usage), from: now()-7d, interval: 1h, by: {dt.smartscape.host}
| fieldsAdd p95 = arrayPercentile(cpu, 95)
| fieldsAdd saturation_risk = if(p95 > 85, "HIGH", else: if(p95 > 70, "MEDIUM", else: "LOW"))
| filter isNotNull(p95)
| sort p95 desc
| fields dt.smartscape.host, p95, saturation_risktimeseries cpu = avg(dt.host.cpu.usage), from: now()-30d, interval: 1d, by: {dt.smartscape.host}
| fieldsAdd current = arrayLast(cpu)
| fieldsAdd daily_growth = (arrayLast(cpu) - arrayFirst(cpu)) / 30
| filter isNotNull(current)
| fieldsAdd days_to_saturation = if(daily_growth > 0, toLong((90 - current) / daily_growth), else: 9999)
| sort days_to_saturation asc
| limit 20
| fields dt.smartscape.host, current, daily_growth, days_to_saturationtimeseries cpu = avg(dt.host.cpu.usage), from: now()-24h, interval: 1h, by: {dt.smartscape.host}
| fieldsAdd baseline_avg = arrayAvg(cpu)
| fieldsAdd current = arrayLast(cpu)
| fieldsAdd anomaly_score = if(isNotNull(current) and isNotNull(baseline_avg), abs(current - baseline_avg), else: 0)
| sort anomaly_score desc
| limit 20
| fields dt.smartscape.host, current, baseline_avg, anomaly_scoremetrics from: now() - 1h
| filter contains(metric.key, "cpu")
| summarize count(), by: {metric.key}
| sort `count()` descreferences/forecasting-analyzer.mdtimeseries-forecastreferences/capacity-forecasting.mdreferences/anomaly-scoring.mdadaptive-anomaly-detectorseasonal-baseline-anomaly-detectorstatic-threshold-analyzerreferences/novelty-detection.mdtimeseries-novelty-detectionreferences/trend-detection.mdtimeseries-novelty-detectiontimeseries