How to compile mqtt panel from git?

Hello,
I’m new to Grafana and got the task to find an input panel so that a user could send a simple integer value from the grafana UI to the network. Grafana 7.0.3 runs on a machine with Ubuntu 18.04.4.

I found the mqtt panel (https://github.com/geeks-r-us/mqtt-panel) which seems ideal for my needs.

How exactly should I compile the code now so that Grafana will accept this panel. It recognizes it already but throws an error:

I tried first with sudo yarn install which succeeded:

yarn install v1.22.4
[1/5] Validating package.json…
[2/5] Resolving packages…
warning Resolution field “@babel/preset-env@7.9.0” is incompatible with requested version “@babel/preset-env@7.8.3”
success Already up-to-date.
Done in 0.98s.

sudo yarn build brought the following error:

yarn run v1.22.4
$ grafana-toolkit plugin:build
:heavy_check_mark: Preparing
:heavy_check_mark: Linting
PASS src/module.test.ts

Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 1.103s
Ran all test suites with tests matching “”.
:heavy_check_mark: Running tests
⠦ Compiling…

Fatal error in , line 0

Check failed: U_SUCCESS(status).

#FailureMessage Object: 0x7ffc0a9248a0Illegal instruction (core dumped)
error Command failed with exit code 132.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I hope I can find some help here. If I should provide any additional information I will gladly do so.

Did you find the solution? I would like to setup too

I got the hint that I should install it via grafana-cli.

grafana-cli --pluginUrl https://github.com/geeks-r-us/mqtt-panel/releases/download/v1.0.3/geeksrus-mqtt-panel-1.0.3.zip plugins install mqtt-panel.zip

1 Like