I am novice in this area, started to build an api for simple json, using mongo db. The idea is to show mongo collection metrics like min, max, avg records per day, collections updates or inserts on a daily basis in mongo collection. I am not clear how these simple json api response should be generated. Can any point with simple example, how the response and actual mongo collections data correlates to?
Asked
Active
Viewed 1,032 times
0
-
AFAIK MongoDB doesn't come with a native HTTP API so you'll have to implement one, then write a Grafana data source plugin for it. – Phil Aug 29 '18 at 13:38
-
Try: https://github.com/JamesOsgood/mongodb-grafana – Jan Garaj Aug 30 '18 at 13:15
-
I have looked at mongodb-grafana but having npm issues, so tried simple json but I am not clear on how to send the response based on metrics i get from mongo – TechJump Aug 30 '18 at 15:12