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. If you want more straightforward tasks to complete, we have some. For more details about how you can help, please take a look at Grafana’s Contributing Guide.
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 Build a plugin
Before you can set up the plugin, you need to set up your environment by following Set up your environment.
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
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
- Install K6
- Run
yarn test:e2e:local
Once you are ready to make a pull request, please read and follow Create a pull request.
You need to have commit rights to the GitHub repository to publish a release.
- Update the version number in the
package.json
file. - Update the
CHANGELOG.md
by copy and pasting the relevant PRs from GitHub's Release drafter interface or by runningnpm run generate-release-notes
. - PR the changes.
- Once merged, follow the Drone release process that you can find [here](https://github.com/grafana/integrations-team/wiki/Plugin-Release-Process#drone-release-proces