dt-obs-analytics
Installation
SKILL.md
Analytics — Dashboard & Notebook Query Extraction
A pipeline of three platform JavaScript scripts under scripts/ — two extractors feeding a shared analyzer runner:
scripts/extract-timeseries-dashboard.js ──┐
scripts/extract-timeseries-notebook.js ──┴──► queryset.json ──► scripts/run-analyzer.js (any Davis analyzer)
Each script is invoked via:
dtctl exec function -f scripts/<script>.js --payload '<json>' -o json
-o json wraps the function return value under .result. When you need to inspect the result, read it directly from the output — no jq required. Pass the full raw output as queries to run-analyzer.js and it unwraps automatically.
Parsing a dashboard URL
When the entry point is a Dynatrace dashboard URL, extract the three components the scripts need: