You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rozetko
005c7009c3
|
2 years ago | |
---|---|---|
.config | 2 years ago | |
cypress/integration | 2 years ago | |
dist | 2 years ago | |
src | 2 years ago | |
.eslintrc | 2 years ago | |
.gitignore | 2 years ago | |
.nvmrc | 2 years ago | |
.prettierrc.js | 2 years ago | |
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yaml | 2 years ago | |
jest.config.js | 2 years ago | |
package.json | 2 years ago | |
tsconfig.json | 2 years ago | |
webpack.config.ts | 2 years ago | |
yarn.lock | 2 years ago |
README.md
Grafana app plugin template
This template is a starting point for building an app plugin for Grafana.
What are Grafana app plugins?
App plugins can let you create a custom out-of-the-box monitoring experience by custom pages, nested datasources and panel plugins.
Getting started
Frontend
-
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
Learn more
Below you can find source code for existing app plugins and other related documentation.