Visualize PostgreSQL EXPLAIN output as interactive tree diagrams in Grafana.
npm install
npm run buildCopy dist/ to your Grafana plugins directory and restart Grafana.
- Query PostgreSQL with
EXPLAIN (FORMAT JSON)orEXPLAIN - Add panel and select "Postgres Explain Visualizer"
- Set "Plan Field Name" to match your query output field
npm run dev # Watch mode
npm run server # Run Grafana in Docker
npm test # Run testsnpm run build- Production buildnpm run clean- Remove artifactsnpm run lint- Check codenpm run typecheck- Check typesnpm run package- Create distribution ZIPnpm run sign- Sign plugin (requiresGRAFANA_ACCESS_POLICY_TOKEN)
git tag v1.0.0
git push --tagsGitHub Actions will build, sign, and create a release.
Apache-2.0 - see LICENSE