JamesOsgood / mongodb-grafana

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

Examples, Security and Debugging #100

Open shafig opened 4 years ago

shafig commented 4 years ago

Hi, I am trying to use the plugin as directed in the instructions. I was able to get the data for Variables. But I am trying to use Table widget and trying the similar query that is there in Readme file, but I am not getting any data. I am wondering this may be because of the Date range. Do we need to have field/col in json as "ts" to represent data for a row ? I assume it will be in epoch format, but are there any example that can show the data that you are using ?

secondly, during the data source setup , we have to specify the mongo db credentials, which you can easily see in browser with developer tools (network tab). Is there a way we can make it more secure ? I want to make sure that the mongodb credentials should not be displayed easily to the end user.

Third : how can I troubleshoot or debug the code on what request is getting sent to backend and what I may be missing . etc. Is there a place where I can enable more debugging for this plugin ?

Thanks. By the way, great and useful plug-in.