Dt App Notebooks

by Dynatrace9529e72715d9Apache-2.0161 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 7 days ago

Work with Dynatrace notebooks - create, modify, query, and analyze notebook JSON including sections, DQL queries, and visualizations.

AI-generated overview

Create, modify, query and analyze Dynatrace notebook JSON documents with sections, DQL queries and visualizations.

What it does
This skill guides an agent through working with Dynatrace notebooks, which are JSON documents held in the Document Store and made up of ordered markdown and DQL sections. It documents the notebook JSON structure, section types, visualization types and their required field types, and the create/update workflow using dtctl commands. It produces or edits notebook JSON files that are validated and deployed with dtctl apply.
When to use it
Use it when creating, modifying, querying or analyzing Dynatrace notebooks. It fits tasks that need notebook sections, DQL queries or visualization settings to be authored or inspected. It is not for general Dynatrace administration outside notebooks.
Requirements
Requires the dtctl CLI with access to a Dynatrace environment and its Document Store, plus the bundled reference files and example JSON assets. No scripts are shipped; the skill is instructions and references only.

Dynatrace Notebook Skill

Overview

Dynatrace notebooks are JSON documents stored in the Document Store containing an ordered array of sections — markdown blocks for narrative and dql blocks for DQL queries with visualizations. Sections render top-to-bottom in array order.

When to use: Creating, modifying, querying, or analyzing notebooks.

Notebook JSON Structure

json
{  "name": "My Notebook",  "type": "notebook",  "content": {    "version": "7",    "defaultTimeframe": { "from": "now()-2h", "to": "now()" },    "sections": [      { "id": "1", "type": "markdown", "markdown": "# Title" },      {        "id": "2", "type": "dql", "title": "Query Section", "showInput": true,        "state": {          "input": { "value": "fetch logs | summarize count()" },          "visualization": "table",          "visualizationSettings": { "autoSelectVisualization": true, "chartSettings": {} },          "querySettings": {            "maxResultRecords": 1000, "defaultScanLimitGbytes": 500,            "maxResultMegaBytes": 1, "defaultSamplingRatio": 10, "enableSampling": false          }        }      }    ]  }}
  • Sections render in array order.
  • Section types: markdown, dql. (function exists but is rare.)
  • Use string-int IDs ("1", "2", …); UUIDs are also accepted.
  • content.defaultTimeframe sets the default timeframe; each section can override via section.state.input.timeframe. Hardcoded time filters in DQL are allowed.

Optional content properties: defaultSegments.

Reading & Analyzing

Fetch full content with dtctl get notebook <id> -o json (describe returns metadata only), then inspect the JSON to discover its available properties. Carefully read references/analyzing.md [blocked] before analyzing.

Create/Update Workflow (Mandatory Order)

Carefully follow the workflow described in references/create-update.md [blocked].

Key rules:

  • Load domain skills BEFORE generating queries — do not invent DQL.
  • Validate ALL section queries before adding to the notebook.
  • Set name before deploying.
  • Prefer autoSelectVisualization: true in visualizationSettings unless the user requested a specific visualization type — when false, state.visualization must be set explicitly.
  • Updating — ALWAYS read the current state first: dtctl get notebook <id> -o json, save it as notebook.json, modify that file, then deploy it. Never reconstruct JSON from scratch or inject an id manually — both silently overwrite UI edits the user made since last deployment.
  • Deploy with dtctl apply — validation runs automatically. If it fails, fix all reported errors before re-applying.

Visualization Types

Notebooks support a subset of Dynatrace visualizations:

  • Time-series (require timeseries/makeTimeseries): lineChart, areaChart, barChart, bandChart
  • Categorical (summarize ... by:{field}): categoricalBarChart, pieChart, donutChart
  • Single value / gauge / meter: singleValue, meterBar, gauge
  • Tabular (any data shape): table, raw, recordView
  • Distribution/status: histogram, honeycomb
  • Geographic maps: choropleth, dotMap, connectionMap, bubbleMap
  • Matrix/correlation: heatmap, scatterplot

Required field types per visualization: references/sections.md [blocked].

References

FileWhen to Load
create-update.md [blocked]Creating/updating notebooks
sections.md [blocked]Section types, visualization field requirements, settings
analyzing.md [blocked]Reading notebooks, extracting queries, purpose identification

Source and attribution

Source:Dynatrace/dynatrace-for-aiinskills/dt-app-notebooksat commit9529e72

License: Apache-2.0

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

More from Dynatrace/dynatrace-for-ai

Dt Setup React Native

Dynatrace

Integrate the Dynatrace React Native Plugin into a React Native or Expo project — dependency setup, dynatrace.config.js, Babel registration, npx instrumentation, navigation tracking, user privacy options, and verification. Handles both bare React Native and Expo (babel-preset-expo) Babel configuration automatically. Trigger: "add Dynatrace to React Native", "React Native plugin setup", "instrument React Native app", "integrate Dynatrace RN", "mobile observability React Native", "react-native-plugin", "dynatrace react native", "add Dynatrace to Expo", "instrument Expo app", "Dynatrace Expo setup". Do NOT use for: querying RN RUM data (use dt-obs-frontends), non-React Native mobile setups, or Dynatrace server-side configuration.

Awaiting classification161updated 7 days ago

Dt Setup Android

Dynatrace

Instruments an existing Android project with the Dynatrace Mobile Agent for basic monitoring.

DevOps & Cloud161updated 7 days ago

Dt Sec Contextualization

Dynatrace

Maps security findings and IoC matches to Dynatrace Smartscape runtime entities and correlates them across entity levels.

Security161updated 7 days ago

Dt Obs Services

Dynatrace

Guides Dynatrace DQL queries for monitoring service performance, RED metrics, service mesh, messaging, and runtime telemetry.

DevOps & Cloud161updated 7 days ago

Dt Obs Predictive Analytics

Dynatrace

Guides Dynatrace predictive analytics: forecasting, capacity saturation, trend and anomaly detection using DQL and analyzer tools.

Data & Analytics161updated 7 days ago

Dt Obs Logs

Dynatrace

Query, filter and analyze Dynatrace log data with DQL for troubleshooting and monitoring.

Data & Analytics161updated 7 days ago