We've been using mongodb for quite some time for various purpose, like newsfeed, analytics etc. Recently a need was found to setup a monitoring for some queries to mongodb and unlike MySQL I was not able to find any means to query the database collection. However a quick look at help of mongo yielded a nice solution. We can put series of statements that we execute at mongo shell inside a .js file and finally execute :
mongo .js

0 comments:
Post a Comment