JamesOsgood / mongodb-grafana

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

Times out for mongodb://localhost:27017 #140

Open samleeney opened 1 year ago

samleeney commented 1 year ago

Returns 'Failed to fetch' on Access:browser and 'Gateway timeout' on Access:server.

This is quite possibly a user error rather than a bug!

numbpun commented 7 months ago

It is an user error! I was stuck on it for quite a bit. Are you using containers? If yes, then the mongoDB url might be wrong. You need to enter 'mongodb://root:password@:' . Also you would need to run it on server on `http;//:3333' . All containers should be on same network and also if your proxy is not a separate container then it would keep on turning off everytime you enter wrong query. Therefore, you would need to again enter the command 'npm run server' or make your proxy container in docker compose file to have "restart:always".