ajeje93 / grafana-mongodb-docker

Docker container for Grafana with MongoDB datasource plugin
MIT License
51 stars 28 forks source link

grafana #1

Closed madhavi2491 closed 2 years ago

madhavi2491 commented 2 years ago

i am unable to run docker-compose file can you please let me know.

ajeje93 commented 2 years ago

Hi, can you share a little more? Do you have any errors in particular?

ajeje93 commented 2 years ago

I did some updates, try to checkout the repo again and see if it works now. Be careful to set LF line endings in the custom-run.sh file (otherwise it will not work).

EDIT: I also optimized the nodejs installation (nodejs is required for the plugin to work) and fixed the actions

EDIT2: the commits (I forgot to link them to the issue) are 3b88bacff21d0366f41d3b82beeb6c5f50b218a1 164c47a1b0d6cdae8c0fb684fcf13e5d1dad1a2c 49a427d4beb01c268e5a65d55a285ce2b568e8ac

madhavi2491 commented 2 years ago

Hi, I was able to run compose file now but i had a doubt how can i know that mongodb plugin is installed or not. I am seeing mongodb as unsigned in grafana. Please can you help i need mongodb plugin. In my project i am using mongodb and grafana.

On Wed, Mar 2, 2022, 7:47 PM Ludovico Serrani @.***> wrote:

I did some updates, try to checkout the repo again and see if it works now. Be careful to set LF line endings in the custom-run.sh file (otherwise it will not work)

— Reply to this email directly, view it on GitHub https://github.com/ajeje93/grafana-mongodb-docker/issues/1#issuecomment-1056979002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3FDFBID5LTBMW37HSBBGDU55Z6ZANCNFSM5PWLW7TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ajeje93 commented 2 years ago

Hi, it is correct that you see the MongoDB plugin installed as unsigned because it is not an official plugin (https://github.com/JamesOsgood/mongodb-grafana) as stated in the readme file of my repo. For all the instructions to use the MongoDB plugin you can refer to the previous link. The plugin is composed of two parts:

The official plugin exists but it is not free (https://grafana.com/grafana/plugins/grafana-mongodb-datasource/).

madhavi2491 commented 2 years ago

yes i tried to use (https://github.com/JamesOsgood/mongodb-grafana) this as well. But i had a doubt in that repo. I have to run grafana and copy (mongodb-grafana) repo into my grafana container. how to run only i was not getting

ajeje93 commented 2 years ago

The goal of my repo is to copy that repo into the container and running the plugin. In fact as you saw the plugin it is installed inside grafana when you start it. So the part of installing the plugin is already done.

The usage of the plugin is well explained in JamesOsgood repo in the example section of its readme file (https://github.com/JamesOsgood/mongodb-grafana#examples).

In the specific case of the container of my repo, you should set http://localhost:3333 in the HTTP settings when creating the data source.

madhavi2491 commented 2 years ago

Hi, Rightnow i am to login into grafana and it is listining to port 3333. But how can i see mango db is installed or not in grafana

On Thu, Mar 3, 2022, 12:21 PM Ludovico Serrani @.***> wrote:

The goal of my repo is to copy that repo into the container and running the plugin. In fact as you saw the plugin it is installed inside grafana when you start it.

The usage of the plugin is well explained in JamesOsgood repo in the example section of its readme file ( https://github.com/JamesOsgood/mongodb-grafana#examples).

In the specific case of the container of my repo, you should set http://localhost:3333 in the HTTP settings when creating the data source.

— Reply to this email directly, view it on GitHub https://github.com/ajeje93/grafana-mongodb-docker/issues/1#issuecomment-1057731439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3FDFCJHIO3JZHHXY5EXFLU6BON3ANCNFSM5PWLW7TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

ajeje93 commented 2 years ago

Hi, I did some more tests and the plugin installs correctly on Grafana 8 but then I noticed that I am not able to select it for a new datasource. I downgraded Grafana to version 7 and tested it and it working on that version. For a full working example you can check my other repo (https://github.com/ajeje93/speedtest-to-mongodb). You can find all the instructions in the readme file of that repo.

madhavi2491 commented 2 years ago

Hi, thanks its working now.I will you another repo also for mongodb installation.Once again thanks for your help on this issue.

On Thu, Mar 3, 2022 at 7:07 PM Ludovico Serrani @.***> wrote:

Hi, I did some more tests and the plugin installs correctly on Grafana 8 but then I noticed that I am not able to select it for a new datasource. I downgraded Grafana to version 7 and tested it and it working on that version. For a full working example you can check my other repo ( https://github.com/ajeje93/speedtest-to-mongodb). You can find all the instructions in the readme file of that repo.

— Reply to this email directly, view it on GitHub https://github.com/ajeje93/grafana-mongodb-docker/issues/1#issuecomment-1058048834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3FDFD45GUGTIPSE2KTQZTU6C6A7ANCNFSM5PWLW7TQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>