monitor mongo queries and aggregations 🚀
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
web
.gitignore
.npmignore
.travis.yml
README.md
db.js
example.png
index.js
monitors.example.js
package-lock.json
package.json

README.md

travis npm-version npm-dependencies standard-js npm-license

mmonitor

mmonitor is a simple tool to monitor mongo queries and aggregations.

example

installation

npm i -g mmonitor

usage

MONGO_URL="localhost:27017/work" mmonitor ~/work.monitors.js
MONGO_URL="localhost:27017/project" mmonitor ~/project.monitors.js

configuration

env variables

the following environment variables must be set:

MONGO_URL

optionally:

HTTP_PORT

monitors.js

create your own monitors.js file, starting from monitors.example.js.

the structure of a monitor is the following:

{
  collection  // string
  type        // 'find', 'distinct', 'aggregate', 'length', 'mapReduce'
  query       // optional query or pipeline
}

development

installation

npm i
npm start

web client

cd web
npm i
npm start