JamesOsgood / mongodb-grafana

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

How do i install this plugin using docker #60

Open rrizik opened 5 years ago

rrizik commented 5 years ago

The docs say to do something like this in order to install plugins to your docker "docker run \ -d \ -p 3000:3000 \ --name=grafana \ -e "GF_INSTALL_PLUGINS=http://plugin-domain.com/my-custom-plugin.zip;custom-plugin" \ grafana/grafana"

how would i do this with your plugin. I cant find a way to point to a git repo or local zip file. sorry if this isnt the right way to ask this question.

PhracturedBlue commented 5 years ago

You can get a dockerfile from here: https://hub.docker.com/r/maxbr/mongodb-grafana/dockerfile

then docker build -t mongo-proxy .

Also note that I have reimplemented this plugin as a fully backend implementation with no proxy needed here: https://github.com/PhracturedBlue/mongodb-grafana-backend

In that case you don't need a docker image to install it (just put it in your grafana plugins dir after building).

rrizik commented 5 years ago

So when I run the docker command that i pasted, i am able to go to localhost:3000 and see my grafana page. Is there a way to do that with your docker file, go to localhost and see the mongo plugin?

This is intended to be spun up later on kubernetes but I want to prove the concept locally first.

PhracturedBlue commented 5 years ago

I am not the author of this plugin, I'm just trying to be helpful :) I implemented my own version of this plugin that has no proxy and thus doesn't need Docker (and supports alerting and other goodies) here: https://github.com/PhracturedBlue/mongodb-grafana-backend Which is currently under active development

However, if you continue using this plugin I was doing something like:

docker network create grafana
docker run ... --net grafna grafana/grafana
docker run --rm --name mongo-proxy --net grafana -p 3333:3333 -d mongo-proxy:latest

then in grafana refer to this via http://mongo-proxy:3333

timstalli commented 5 years ago

https://github.com/gkatzioura/mongodb-grafana This repo has the proxy and the networks incase anybody wants to use docker as well.

abduakhatov commented 3 years ago

I am not the author of this plugin, I'm just trying to be helpful :) I implemented my own version of this plugin that has no proxy and thus doesn't need Docker (and supports alerting and other goodies) here: https://github.com/PhracturedBlue/mongodb-grafana-backend Which is currently under active development

However, if you continue using this plugin I was doing something like:

docker network create grafana
docker run ... --net grafna grafana/grafana
docker run --rm --name mongo-proxy --net grafana -p 3333:3333 -d mongo-proxy:latest

then in grafana refer to this via http://mongo-proxy:3333

small refix:

docker network create grafana
docker run ... --net grafana grafana/grafana
docker run --rm --name mongo-proxy --net grafana -p 3333:3333 -d mongo-proxy:latest
chinky1 commented 3 years ago

Hi Team, I wanted to use "https://github.com/JamesOsgood/mongodb-grafana" pluging in my grafana docker image which is deployed on kubernetes. please suggest me how to do it? also i am not clear how to perform below command in docker image to start proxy Url.(http://localhost:3333)

Run npm install to install the node.js dependencies Run npm run server to start the REST API proxy to MongoDB. By default, the server listens on