I installed the simple react panel (GitHub - grafana/grafana-starter-panel: A starter for Grafana panel plugins) and it does not appear in the plugin list on the Grafana console after restarting grafana-server.
Prior to this I installed Node.js (v12.18.3), yarn (v1.22.4), and node-sass (4.14.1), copied the folder simple-react-panel-master into the default plugin directory /var/lib/grafana/plugins, and specified the default directory in the config file grafana.ini under [paths].
Inside folder ‘/var/lib/grafana/plugins/simple-react-panel-master’ I did the commands ‘yarn install’ and ‘yarn build’:
[root@ip-10-56-248-220 20200810 21:16:11 simple-react-panel-master]# yarn instal l
yarn install v1.22.4
[1/5] Validating package.json…
[2/5] Resolving packages…
[3/5] Fetching packages…
info fsevents@1.2.13: The platform “linux” is incompatible with this module.
info “fsevents@1.2.13” is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.3: The platform “linux” is incompatible with this module.
info “fsevents@2.1.3” is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies…
warning “@grafana/toolkit > @grafana/eslint-config@1.0.0-rc1” has incorrect peer dependency “eslint-plugin-jsdoc@^21.0.0”.
warning “@grafana/toolkit > @grafana/ui > storybook-dark-mode@0.4.0” has unmet p eer dependency “@storybook/api@>= 5.x”.
warning “@grafana/toolkit > @grafana/ui > storybook-dark-mode@0.4.0” has unmet p eer dependency “@storybook/addons@>= 5.x”.
warning “@grafana/toolkit > @grafana/ui > storybook-dark-mode@0.4.0” has unmet p eer dependency “@storybook/components@>= 5.x”.
warning “@grafana/toolkit > @grafana/ui > storybook-dark-mode@0.4.0” has unmet p eer dependency “@storybook/core-events@>= 5.x”.
warning “@grafana/toolkit > @grafana/ui > storybook-dark-mode@0.4.0” has unmet p eer dependency “@storybook/theming@>= 5.x”.
warning “@grafana/toolkit > @grafana/ui > @grafana/slate-react > slate-react-pla ceholder@0.2.9” has unmet peer dependency “slate-react@>=0.22.0”.
[5/5] Building fresh packages…
Done in 79.41s.
[root@ip-10-56-248-220 20200810 21:19:53 simple-react-panel-master]# yarn build
yarn run v1.22.4
$ grafana-toolkit plugin:build
Preparing
Linting
PASS src/module.test.tsTest Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.331s
Ran all test suites with tests matching “”.
Running tests
⠋ Compiling… Starting type checking service…
Using 1 worker with 2048MB memory limit
⠸ Compiling…
Hash: cba09ca1544c407ef036
Version: webpack 4.41.5
Time: 7835ms
Built at: 08/10/2020 9:20:38 PM
Asset Size Chunks Chunk Names
LICENSE 11.1 KiB [emitted]
README.md 2.04 KiB [emitted]
img/logo.svg 1.55 KiB [emitted]
module.js 3.41 KiB 0 [emitted] module
module.js.LICENSE.txt 808 bytes [emitted]
module.js.map 20 KiB 0 [emitted] [dev] module
plugin.json 696 bytes [emitted]
Entrypoint module = module.js module.js.map
[0] external “react” 42 bytes {0} [built]
[1] external “emotion” 42 bytes {0} [built]
[2] external “@grafana/ui” 42 bytes {0} [built]
[3] external “@grafana/data” 42 bytes {0} [built]
[4] ./module.ts + 2 modules 13.2 KiB {0} [built]
| ./module.ts 868 bytes [built]
| ./SimplePanel.tsx 2.34 KiB [built]
| …/node_modules/tslib/tslib.es6.js 10 KiB [built] Compiling…
Done in 12.77s.
Then I restarted grafana-server and verified from the Grafana log that the plugin was registered :
t=2020-08-10T21:21:41+0000 lvl=info msg=“Shutdown started” logger=server reason=“System signal: terminated”
t=2020-08-10T21:21:41+0000 lvl=info msg=“Stopped Stream Manager”
t=2020-08-10T21:21:42+0000 lvl=info msg=“Starting Grafana” logger=server version=7.1.0 commit=8101355285 branch=HEAD compiled=2020-07-16T11:04:17+0000
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config loaded from” logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config loaded from” logger=settings file=/etc/grafana/grafana.ini
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.data=/var/lib/grafana”
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.logs=/var/log/grafana”
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.plugins=/var/lib/grafana/plugins”
t=2020-08-10T21:21:42+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.provisioning=/etc/grafana/provisioning”
t=2020-08-10T21:21:42+0000 lvl=info msg=“Path Home” logger=settings path=/usr/share/grafana
t=2020-08-10T21:21:42+0000 lvl=info msg=“Path Data” logger=settings path=/var/lib/grafana
t=2020-08-10T21:21:42+0000 lvl=info msg=“Path Logs” logger=settings path=/var/log/grafana
t=2020-08-10T21:21:42+0000 lvl=info msg=“Path Plugins” logger=settings path=/var/lib/grafana/plugins
t=2020-08-10T21:21:42+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning
t=2020-08-10T21:21:42+0000 lvl=info msg=“App mode production” logger=settings
t=2020-08-10T21:21:42+0000 lvl=info msg=“Writing PID file” logger=server path=/var/run/grafana-server.pid pid=8552
t=2020-08-10T21:21:42+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=mysql
t=2020-08-10T21:21:42+0000 lvl=info msg=“Starting DB migration” logger=migrator
t=2020-08-10T21:21:42+0000 lvl=warn msg=“[Deprecation notice]” logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=warn msg=“Fewer than 1% of Grafana installations use organizations, and we feel that most of those” logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=warn msg=“users would have a better experience using Teams instead. As such, we are considering de-emphasizing” logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=warn msg=“and eventually deprecating Organizations in a future Grafana release. If you would like to provide” logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=warn msg=“feedback or describe your need, please do so in the issue linked below” logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=warn msg=Support for multiple organizations · Issue #24588 · grafana/grafana · GitHub logger=sqlstore
t=2020-08-10T21:21:42+0000 lvl=info msg=“Starting plugin search” logger=plugins
t=2020-08-10T21:21:42+0000 lvl=info msg=“Registering plugin” logger=plugins name=“Direct Input”
t=2020-08-10T21:21:43+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
Also verified plugin was installed locally:
[root@ip-10-56-248-220 20200810 21:25:21 simple-react-panel-master]# grafana-> cli plugins ls
installed plugins:
myorgid-simple-panel @ 1.0.0
Restart grafana after installing plugins .
Then checked plugin list on console and the new plugin was not listed.