If using this in a docker/container is anything like using it in a Linux environment, move the compiled plug in to the folder
/var/lib/grafana/plugins
update the /etc/grafana/grafana.ini
# Enter a comma-separated list of plugin identifiers to identify plugins to load even if they are unsigned. Plugins with modified signatures are never loade>
allow_loading_unsigned_plugins = grafana-mqtt-datasource
restart the server, and should work when you try to add data source in Grafana.
Do you know if I can compile on windows then copy the plugin in the right place or I have to compile on Linux because the container is like-Linux (Official Alpine image) ?
Do you know how copy the folder in the Grafana plugin folder in the container ?
if for the backend you use the command mage buildAll it will cross build the backend - so when you copy the plugin dist to a different platform it will work - you can use docker cp (docker cp | Docker Documentation) to do the copying - another option would be to just mount the folder to your container - just my 2 cents
Do you know or know someone that can help to set permission ?
It’s probably right, because I need to mount a local folder on Windows to container in Linux…
wait - on a second look - is this a windows host trying to mount on a linux container?
in that case maybe the path is the issue - try to use an absolute path on the src side of the colon
@patopat I want to kiss you bro. Every single solution says to just add the allow_loading_unsigned_plugins = grafana-mqtt-datasource line and it was good. But I guess none of those solutions were running in a docker container. I had to follow your exact instructions, ie include the environment + the volume, and FINALLY it worked.
Thank you. It was a huge pain in the ass just to build the damn thing. It was driving me crazy to feel like I was so close yet still couldn’t get it to load.