- Install Go
- Install Mage
- Install Go extension in VS code (optional)
- Install node
- Install yarn (
npm install --global yarn
)
-
Install dependencies with
yarn install
-
Build plugin in development mode or run in watch mode with
yarn dev
oryarn watch
-
Build plugin in production mode with
yarn build
-
Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go go mod tidy
-
Build backend plugin binaries for Linux, Windows and Darwin with
mage -v
ormage -v build:windows
for building only for windows -
List all available Mage targets for additional commands using
mage -l
-
Test for backend datasource located at
plugin_test.go
. Test can be run easily in vs code with GO VS code extension installed
- Documentation on Backend plugins
- Build a data source backend plugin tutorial
- Grafana backend datasource template project on GitHub
- Grafana documentation
- Grafana Tutorials - Grafana Tutorials are step-by-step guides that help you make the most of Grafana
- Grafana UI Library - UI components to help you build interfaces using Grafana Design System
- Grafana plugin SDK for Go
- Docs on Grafana Dataframe datastructure