Thank you for your interest in contributing to this repository. We are glad you want to help us to improve the project and join our community. Feel free to browse the open issues.
Clone this repository into your local environment. The frontend code lives in the src
folder, alongside the plugin.json file.
The backend Go code is in the pkg
folder. To build this plugin refer to [plugin tools(https://grafana.com/developers/plugin-tools).
Before you can set up the plugin, you need to set up your environment by installing:
You can use mage to compile and test the Go backend.
mage test # run all Go test cases
mage build:backend && mage reloadPlugin # builds and reloads the plugin in Grafana
If host operating system is different from one used in grafana docker image use the following instead:
mage -v buildAll
You can build and test the frontend by using yarn
:
yarn test # run all test cases
yarn dev # builds and puts the output at ./dist
You can also have yarn
watch for changes and automatically recompile them:
yarn watch
You can start grafana and questdb containers with:
docker-compose up