Dt App Dashboards

作者 Dynatrace9529e72715d9Apache-2.0161 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫7 天前更新

Work with Dynatrace dashboards - create, modify, query, and analyze dashboard JSON including tiles, layouts, DQL queries, variables, and visualizations.

AI 產生的概覽

建立、更新、查詢與分析 Dynatrace 儀表板 JSON,包含圖磚、版面配置、DQL 查詢與變數。

功能
此技能引導代理處理 Dynatrace 儀表板,這類儀表板是存放在 Document Store 中的 JSON 文件,由圖磚、網格版面配置與變數組成。它說明儀表板 JSON 結構、強制的建立與更新流程、視覺化類型及其所需欄位形態,以及變數定義與單選、多選篩選模式。它會產生或修改儀表板 JSON 並以 dtctl 部署,同時指向隨附的參考檔案以了解分析、圖磚、變數與建立/更新細節。
適用情境
適用於建立、修改、查詢或分析 Dynatrace 儀表板。適合新增或編輯圖磚、為特定資料形態選擇視覺化、定義儀表板變數,或檢視現有儀表板的 JSON 與查詢等任務。
執行需求
需要可存取 Dynatrace 環境及其 Document Store 的 dtctl 命令列工具,以及用於查詢的 DQL 知識。僅為說明性內容,不隨附指令碼,但包含參考文件與範例 JSON 資源。

Dynatrace Dashboard Skill

Overview

Dynatrace dashboards are JSON documents stored in the Document Store containing tiles (content/visualizations), layouts (grid positioning), and variables (dynamic query parameters).

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

Dashboard JSON Structure

json
{  "name": "My Dashboard",  "type": "dashboard",  "content": {    "version": 21,    "variables": [],    "tiles": { "<id>": { "type": "data|markdown", ... } },    "layouts": { "<id>": { "x": 0, "y": 0, "w": 24, "h": 8 } }  }}
  • Tile IDs in tiles must match IDs in layouts
  • Grid is 24 units wide. Common widths: 24 (full), 12 (half), 6 (quarter)
  • Two tile types: markdown (text content) and data (DQL query + visualization)

Optional content properties: settings, refreshRate, annotations

Reading & Analyzing

Fetch full content with dtctl get dashboard <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 queries before adding to dashboard
  • No time-range filters in queries unless explicitly requested by user
  • Set name before deploying
  • Updating — ALWAYS read the current state first: dtctl get dashboard <id> -o json, save it as dashboard.json, modify that file, then deploy it. Never reconstruct JSON from scratch or inject an id manually — both silently overwrite any 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

  • Time-series (require timeseries/makeTimeseries): lineChart, areaChart, barChart, bandChart
  • Categorical (summarize ... by:{field}): categoricalBarChart, pieChart, donutChart
  • Single value/gauge (single numeric record): singleValue, meterBar, gauge
  • Tabular (any data shape): table, raw, recordList
  • Distribution/status: histogram, honeycomb
  • Maps: choroplethMap, dotMap, connectionMap, bubbleMap
  • Matrix: heatmap, scatterplot

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

Variables Quick Reference

json
{ "version": 2, "key": "Service", "type": "query", "visible": true,  "editable": true, "input": "smartscapeNodes SERVICE | fields name",  "multiple": false }
  • Single-select: filter service.name == $Service
  • Multi-select: filter in(service.name, array($Service))
  • Types: query (DQL-populated), csv (static list), text (free-form)

Full variable reference: references/variables.md [blocked]

References

FileWhen to Load
create-update.md [blocked]Creating/updating dashboards
tiles.md [blocked]Tile types, visualization field requirements, settings
variables.md [blocked]Variable types, replacement strategies, patterns
analyzing.md [blocked]Reading dashboards, extracting queries, health assessment

來源與署名

來源:Dynatrace/dynatrace-for-ai位於skills/dt-app-dashboards提交9529e72

授權條款: Apache-2.0

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架