Install Grafana mqtt-datasource on Ubuntu - plug-in not showing up on search

When I do a yarn build I get the following:

shock@raspberrypi:~/go/bin/grafana-plugins/mqtt-datasource $ yarn build
yarn run v1.22.19
$ rm -rf dist && grafana-toolkit plugin:build && mage build:backend

:warning: DEPRECATED. This command is deprecated and will be removed in v10. :warning:
Please migrate to grafana create-plugin plugin-tools/packages/create-plugin at main · grafana/plugin-tools · GitHub

Using Node.js v18.16.0
Using @grafana/toolkit v9.5.2
:heavy_check_mark: Preparing
:heavy_check_mark: Linting
FAIL src/handleEvent.test.ts
● Test suite failed to run

TypeError: Cannot redefine property: window

  at Object.<anonymous> (node_modules/jest-canvas-mock/lib/index.js:21:17)
  at async TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13)
  at async runJest (node_modules/@jest/core/build/runJest.js:404:19)
  at async _run10000 (node_modules/@jest/core/build/cli/index.js:320:7)
  at async runCLI (node_modules/@jest/core/build/cli/index.js:173:3)

Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 3.067 s
Ran all test suites with tests matching “”.
:heavy_multiplication_x: Tests failed
Trace: Error: Tests failed
at /home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/@grafana/toolkit/src/cli/tasks/plugin/tests.js:29:19
at Generator.next ()
at fulfilled (/home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/tslib/tslib.js:115:62)
at /home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/@grafana/toolkit/src/cli/utils/useSpinner.js:20:21
at Generator.throw ()
at rejected (/home/shock/go/bin/grafana-plugins/mqtt-datasource/node_modules/tslib/tslib.js:116:69)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.

anybody have an idea why I am getting this error condition?

I’m running Raspberry Pi OS 64 bit .

if you need any information please ask.

Hi all,
can u also guid me how can add the permission to install mqtt plug in for the bitnami-grafana operator

Which version of Grafana are you using? (OSS or Cloud, and version #)

image
image
bitnami/grafaoperator chart version 2.9.3
grafana version 9.5.2
app version 4.10.1

and we deployed in aks using helm

Hi Grant2,

I read the topic and I have the similar issue => receive a MQTT Meassage as an Json Object and display a single value out of it.
What I extracted from the further discussions is, it not possible to directly extract a value from a Json Object in the visualisation, right?
So if I need a single value to display it on a gauge, I have to send it by single value via NodeRed for example.
Is my understanding right?

I think there should be a way for you to extract the single value from a JSON object (probably using a Grafana transformation), but I am not sure. I will mess around with this today or tomorrow and post back here.