- Node.js 22+
- Go 1.24+
- Mage
- Docker (for the local Grafana instance)
Build plugin backend binaries for Linux, Windows and Darwin:
mage -v build:linux build:linuxARM64 build:darwin build:darwinARM64 build:windowsList all available Mage targets:
mage -lRun backend tests:
go test ./...npm install
# development build with watch
npm run dev
# production build
npm run build
# unit tests
npm run test:ci
# lint
npm run lintnpm run serverThis starts Grafana on http://localhost:3002 via Docker Compose with the plugin mounted from dist/ and the provisioned data source and sample dashboard from provisioning/. Set your DoiT API key through the environment:
DOIT_API_KEY=<your-key> npm run servernpm run server
npm run e2eThe plugin is signed and packaged via the @grafana/create-plugin GitHub Actions release workflow. To cut a release:
- Update
CHANGELOG.md. - Run
npm version <major|minor|patch>. - Run
git push origin main --follow-tags.
Signing requires the GRAFANA_API_KEY repository secret (a Grafana Cloud API key with the PluginPublisher role). See Sign a plugin.