query-app-insights
Installation
SKILL.md
Query App Insights
Query Azure Application Insights telemetry to answer questions about command usage, extension activity, performance.
Prerequisites
APP_INSIGHTS_API_KEYenv varAPP_INSIGHTS_CLIENT_IDenv var
Workflow
- Validate credentials - check env vars exist
- Test API -
tsx scripts/queryAppInsights.ts "customEvents | take 1" - Interpret question - identify commands, extensions, time ranges, metrics
- Find executor name - if checking a command, find its executor name (see references)
- Build KQL query - use executor names, not command IDs
- Execute -
tsx scripts/queryAppInsights.ts "<kql-query>" - Answer - interpret results, format clearly