Giter VIP home page Giter VIP logo

Comments (4)

yvangarc avatar yvangarc commented on August 16, 2024 4

The same error after selecting MongoDB datasource:
Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' }).

Any idea how to solve It?

from mongodb-grafana.

kidharb avatar kidharb commented on August 16, 2024

I got the same and fixed it by mounting by docker volume as below

-v ./plugins/mongodb-grafana/src:/var/lib/grafana/plugins:z

I then go the "unsigned plugin" message in Grafana which you can fix with
by setting an environment variable as follows

GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mongodb-datasource

But then I got an error in Grafana

Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' }). Instantiating http://zadsdcrapp1435:3000/public/plugins/grafana-mongodb-datasource/module.js Loading plugins/grafana-mongodb-datasource/module

Anyway my full docker command is below

sudo docker run --name grafana -v ./plugins/mongodb-grafana/src:/var/lib/grafana/plugins:z --rm -p 3000:3000 -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mongodb-datasource grafana/grafana

from mongodb-grafana.

mrherman avatar mrherman commented on August 16, 2024

I got the same and fixed it by mounting by docker volume as below

-v ./plugins/mongodb-grafana/src:/var/lib/grafana/plugins:z

I then go the "unsigned plugin" message in Grafana which you can fix with by setting an environment variable as follows

GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mongodb-datasource

But then I got an error in Grafana

Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' }). Instantiating http://zadsdcrapp1435:3000/public/plugins/grafana-mongodb-datasource/module.js Loading plugins/grafana-mongodb-datasource/module

Anyway my full docker command is below

sudo docker run --name grafana -v ./plugins/mongodb-grafana/src:/var/lib/grafana/plugins:z --rm -p 3000:3000 -e GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mongodb-datasource grafana/grafana

Following your instructions I don't see an error message about the transpile (maybe I am not looking in the right spot), but I also don't get any thing in the settings panel when I go to add mongodb-grafana as a data source (see picture). Do you get the same thing there?

Looking at the plugin page for mongodb-grafana on the grafana hosted site, it seems to be a mix of the official mongodb for enterprise users and this plugin (for example it shows all the versions for the enterprise edition but instructions for this external plugin). I wonder if that is causing an issue (but if it was wouldn't others be having the same issue?)

image

My Dockerfile:

FROM grafana/grafana

USER root

RUN apk update && \
    apk upgrade && \
    apk add --no-cache npm && \ 
    wget https://github.com/JamesOsgood/mongodb-grafana/archive/master.tar.gz -O - | tar xz -C $GF_PATHS_PLUGINS && \
    cd  $GF_PATHS_PLUGINS/mongodb-grafana-master && \
    npm install --silent && \
    npm cache clean --force && \
     echo "finished"
    
USER grafana

ENTRYPOINT ["/bin/sh", "-c" , "npm run server --prefix $GF_PATHS_PLUGINS/mongodb-grafana-master & /run.sh"]

from mongodb-grafana.

sagarpandav avatar sagarpandav commented on August 16, 2024

I have tried using the same with docker stack on the ubuntu server. This issue seems to be with the newer versions of grafana images.
However, for me, this plugin is working with grafana version 7.1.5.
Furthermore, I have checked with more latest versions one by one on the stable release of grafana and for up to Version 8.3.0, this plugin is working without any error as before.

You can check below in the screenshot, Select button is available in version 8.3.0
image

from mongodb-grafana.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.