This template is a starting point for building an app plugin for Grafana. It includes a dashboard.
App plugins can let you create a custom out-of-the-box monitoring experience by custom pages, nested datas ources, and panel plugins.
-
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 (using Playwright)
# 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.