grafana / mqtt-datasource

MQTT Datasource for Grafana allows streaming data from any MQTT broker running either locally or remotely.
Apache License 2.0
170 stars 51 forks source link

mqtt-datasource on Raspberry Pi #35

Open ldrssantos opened 2 years ago

ldrssantos commented 2 years ago

Hi, tolzhabayev!

I tried to install the MQTT plugin on my Grafana server installed on the Raspberry Pi and I had the following issue when running the "yarn build" Could you please help me with it?

yarn run v1.22.17 $ rm -rf dist && grafana-toolkit plugin:build && mage build:backend Using Node.js v14.18.2 Using @grafana/toolkit v8.0.0-beta.3 ✔ Preparing ✔ Linting Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db

Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating ts-jest[config] (WARN) The option tsConfig is deprecated and will be removed in ts-jest 27, use tsconfig instead PASS src/handleEvent.test.ts

Test Suites: 1 passed, 1 total Tests: 2 passed, 2 total Snapshots: 2 passed, 2 total Time: 6.285 s Ran all test suites with tests matching "". ✔ Running tests ⠙ Compiling... Starting type checking service... Using 1 worker with 2048MB memory limit ⠇ Compiling... Hash: 6b5a018b08c2ac55e195 Version: webpack 4.41.5 Time: 37912ms Built at: 01/29/2022 2:00:56 PM Asset Size Chunks Chunk Names CHANGELOG.md 53 bytes [emitted] LICENSE 11.1 KiB [emitted] EADME.md 3.69 KiB [emitted] img/mqtt.svg 1.31 KiB [emitted] module.js 3.8 KiB 0 [emitted] module module.js.LICENSE.txt 808 bytes [emitted] module.js.map 24 KiB 0 [emitted] [dev] module plugin.json 1000 bytes [emitted] Entrypoint module = module.js module.js.map [0] external "react" 42 bytes {0} [built] [1] external "@grafana/ui" 42 bytes {0} [built] [2] external "lodash" 42 bytes {0} [built] [3] external "@grafana/data" 42 bytes {0} [built] [4] external "@grafana/runtime" 42 bytes {0} [built] [5] ./module.ts + 5 modules 14.5 KiB {0} [built] | ./module.ts 296 bytes [built] | ./datasource.ts 352 bytes [built] | ./ConfigEditor.tsx 2.78 KiB [built] | ./QueryEditor.tsx 658 bytes [built] | ../node_modules/tslib/tslib.es6.js 10 KiB [built] | ./handleEvent.ts 395 bytes [built]

✔ Compiling... /bin/sh: 1: mage: not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

koleto commented 2 years ago

You need to install mage: https://magefile.org

Prerequisites: https://grafana.com/tutorials/build-a-streaming-data-source-plugin/