To build X-Ray data source locally you should follow the steps below.
- Install dependencies
yarn install
- Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
- Build plugin in production mode
yarn build
- Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
- Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
- List all available Mage targets for additional commands:
mage -l
- Watch all go sources, rebuild on change and reload plugin in running Grafana (need Bra installed):
bra run
-
Ensure you have the
AWS X-Ray E2E
data source provisioned in theprovisioning/datasources
directory -
Start the server
yarn server
- Run the tests
yarn e2e
# Optionally show the report, the report automatically shows if any tests fail
yarn e2e:report
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 runningyarn generate-release-notes
(you'll need to install the gh cli and jq to run this command). - PR the changes.
- Once merged, follow the Drone release process that you can find here
- Build a data source backend plugin tutorial
- 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