Giter VIP home page Giter VIP logo

Comments (8)

barisvelioglu avatar barisvelioglu commented on August 17, 2024 2

@mohsen1565

Exactly you can do what you mean. I already did that. I created a docker image to run mongodb grafana proxy as another container (https://hub.docker.com/repository/docker/barisv/grafana-mongo-proxy-server)

Then only thing you need to this to configure your mongo plugin to send request to those container.

from mongodb-grafana.

rumatar avatar rumatar commented on August 17, 2024 1

Hi all.
I solved the issue by building my image of the grafana of the version I needed with the plugin integrated into it. Works great!

https://github.com/ajeje93/grafana-mongodb-docker

from mongodb-grafana.

rumatar avatar rumatar commented on August 17, 2024

+1

from mongodb-grafana.

mohsen1565 avatar mohsen1565 commented on August 17, 2024

@mohsen1565

Exactly you can do what you mean. I already did that. I created a docker image to run mongodb grafana proxy as another container (https://hub.docker.com/repository/docker/barisv/grafana-mongo-proxy-server)

Then only thing you need to this to configure your mongo plugin to send request to those container.

Hi there and thank you for your input. I have set it up like that exactly but it still wouldn't work. Any chance I can screenshare or send you code snippets to see how you did it. Or if you could possibly share yours....

from mongodb-grafana.

barisvelioglu avatar barisvelioglu commented on August 17, 2024

@mohsen1565

This is output:

image

This is plugin configuration

image

This is kubernetes:
image

I used port-forwarding for testing purposes


kubectl port-forward service/grafana 31002:80

If you cant solve your issue, we can look at it together. Please describe, what steps you did and whats the current problem ?

from mongodb-grafana.

rumatar avatar rumatar commented on August 17, 2024

@mohsen1565

Exactly you can do what you mean. I already did that. I created a docker image to run mongodb grafana proxy as another container (https://hub.docker.com/repository/docker/barisv/grafana-mongo-proxy-server)

Then only thing you need to this to configure your mongo plugin to send request to those container.

Can you please tell me how did you configure the pod with proxies?
Need to pass mongo addresses through env?

from mongodb-grafana.

glatiuden avatar glatiuden commented on August 17, 2024

@mohsen1565

This is output:

image

This is plugin configuration

image

This is kubernetes: image

I used port-forwarding for testing purposes


kubectl port-forward service/grafana 31002:80

If you cant solve your issue, we can look at it together. Please describe, what steps you did and whats the current problem ?

Hey there! Thank you so much for your solution. I currently have the Grafana and the MongoDB Proxy API pod running, would you be able to advise on how do I add the Proxy Pod (the mongodbproxy-api) as a data source? I'm a bit confused. I understand the non-containerized version requires me to copy it into the Grafana plugin folders, but I'm unsure about the containerized version. Thank you once again :)

from mongodb-grafana.

denef avatar denef commented on August 17, 2024

So, here is how I do that:

  1. use image: grafana/grafana-oss with volumes: -./grafana-storage:/var/lib/grafana ENV GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=grafana-mongodb-datasource
  2. copy the plugin into grafana-storage/plugins restart Grafana
  3. launch the proxy container mentioned above mongoproxy image: barisv/grafana-mongo-proxy-server ports: - 3333:3333
  4. connect the datasource (go to plugins > mongoldb > add datasource)
  5. use http://monogoproxy:3333 as URL

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.