-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building and installing the MQTT plugin #15
Comments
make sure to satisfy the pre-requisites from here: https://grafana.com/tutorials/build-a-streaming-data-source-plugin/ |
Here's what I had to do on Ubuntu 20. It's non-trivial... InstallingUbuntu 20 supports Grafana v7.0, but we need Grafana 8.0 as it supports streaming data sources (e.g. MQTT).
Dashboard will be served on port 3000. Default username and password are "admin", you'll be prompted to change password. Add MQTT Data SourceInstall prerequisitesYarn
Node v14
Go
Add the following to your environment (e.g. .bashrc)
Mage
Build data source
Add data source to grafanaEdit vi /etc/grafana/grafana.ini. Add data source folderLook for
Allow unsigned sourcesLook for
Restart service
|
can you help me for the same steps for windows |
Sorry, can't help, I'm only working on Linux. And I'm only a few days ahead of you in ramping on this project. |
Ok i found a small hint you need to change the the command rm to rimraf in the package.json file i will try to make a guide to for building this plugin for windows |
How to Build the grafana MQTT plugin for windows 10 :- 1.Download Nodejs version 14 or higher from https://nodejs.org/ |
@whbruce @mmohamed15 appreciate the detailed pre-requisite installation guides 👏 |
@whbruce and @mmohamed15 , isnt the npm package It is under devDependencies in the |
Im am trying to install this plugin inside a container with grafana installed running ubuntu (grafana:8.2.2-ubuntu) on a linux mashine.
Any thoughts? |
it works better to replace "rm -rf dist && ..." by "del /F /Q dist && ..." on windows. |
hi, wondering if you can help. I have Ubuntu 20 and followed these instructions as written above except
Continuing with the instructions, I modified the config file as described, but still, the plugin is NOT showing up in data source add-on/ pluging search when in Grafana desktop. what have I done wrong? more details here |
Hi There,
|
I did get this to work, eventually, on my Ubuntu 20 computer (which is a relatively clean install).
My orignal problem was that my own plug-in folder did not have the right permissions, so, placing it into the default grafana plugin fodler solved that. |
Thanks for this confirmation. It is exactly what I did. Step by step, exactly the same. |
@felice64 I may suggest that you check the Grafana logs, you can change the level of detail in the the config file. Perhaps there's information there you can check out, especilly if you built the plug-in without any errros, and now its just a matter of Grafana recognizing it. |
I didn't understand the punkt 8th . can you explaine more |
Hi ranim |
Here is how I manged to build it with the current grafana container:
|
Based on all the feedback above, here's how I've done it using a Dockerfile to build on my target the plugin:
This was tested on macOS and Linux. |
Hi guys. docker-compose.yml services: Dockerfile USER root #YARN #NODE #GO #MAGE #GRAFANA PLUGIN The Grafana recognize this plugin, but when we click to add, shows this error. Anyone has any clue about that? |
[SOLVED] Upgraded GO and it now works fine. OLD QUESTION: Hi, attempting install of this plugin on Ubuntu 20.04.5 LTS (VM on gcp..
Here the output of
Any idea why this embed error? |
[SOLVED]
can someone try it?
or [SOLVED]
|
mmmmmm [SOLVED] |
i have a small problem in building the Grafana mqtt plugin
i tried to build it in windows but i failed specially when i run the yarn build command i always get that -rm and mage in not recognized
then i switched to try to build it in ubuntu linux but i also faced the problem of mage is not recognized even though i had installed go and tried to install mage
can you help me in setting the necessary setup to be able to build the mqtt plugin correctly i hope that it will be bundled with grafana 8.1 release and this didn't happen
maybe how i can install mage orn something like that
The text was updated successfully, but these errors were encountered: