JamesOsgood / mongodb-grafana

MongoDB plugin for Grafana
MIT License
464 stars 213 forks source link

Cannot add a datasource #138

Open ktalebian opened 1 year ago

ktalebian commented 1 year ago

I'm running Grafana OSS locally via Docker. I cloned this project in this location /opt/homebrew/Cellar/grafana/9.3.6/share/grafana/public/app/plugins/datasource/mongodb-grafana and restarted the app.

When I visit localhost:3000 to access Grafana and add a datasource, MongoDB shows up but it is not clickable - I cannot configure it.

What seems to be he issue?

josephjacobmorris commented 1 year ago

I am also facing the same issue, It is showing up in the grafana/grafana-oss:9.2.7 UI but on clicking nothing happens image

My docker-compose.yml is like this :

  datastore:
    image: mongo
    ports:
      - 27017:27017
    volumes:
      - ./mongodb_data:/data/db
    restart: always

  grafana:
    image:
      joseph/grafana-mongodb:v1
    container_name: monitoring_grafana
    ports:
      - "3000:3000"
    restart: always
    env_file:
      - config.grafana

and the docker is built using this Dockerfile

FROM  grafana/grafana-oss:9.2.7

COPY ./grafana.ini /etc/grafana/grafana.ini

COPY ./mongodb-grafana /var/lib/grafana/plugins/

and in grafana.ini I have updated allow_loading_unsigned_plugins =grafana-mongodb-datasource to allow the unsigned plugin.

But Why I am not able to use this as datasource?

CostasCF commented 1 year ago

same issue

Update: Downgraded to 8.2.4 Grafana version, seems to be working

denef commented 1 year ago

You can go to plugins > MongoDB > "Create a MongoDB data source"