This template is a starting point for building a panel plugin for Grafana.
Panel plugins allow you to add new types of visualizations to your dashboard, such as maps, clocks, pie charts, lists, and more.
Use panel plugins when you want to do things like visualize data returned by data source queries, navigate between dashboards, or control external systems (such as smart home devices).
-
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
-
Run the tests (using Jest)
# Runs the tests and watches for changes yarn test # Exists after running all the tests yarn lint:ci
-
Spin up a Grafana instance and run the plugin inside it (using Docker)
yarn server
-
Run the E2E tests (using Cypress)
# Spin up a Grafana instance first that we tests against yarn server # Start the tests yarn e2e
-
Run the linter
yarn lint # or yarn lint:fix
Below you can find source code for existing app plugins and other related documentation.