This template is a starting point for building a panel plugin with data links 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:
npm install
-
Build plugin in development mode or run in watch mode:
npm run dev
-
Build plugin in production mode:
npm run build
-
Run the tests (using Jest):
# Runs the tests and watches for changes npm run test # Exists after running all the tests npm run lint:ci
-
Spin up a Grafana instance and run the plugin inside it (using Docker):
npm run server
-
Run the E2E tests:
# Spin up a Grafana instance first that we tests against npm run server # Start the tests npm run e2e
-
Run the linter:
npm run lint # or npm run lint:fix
Below you can find source code for existing app plugins and other related documentation.