1.5.0 • Published 6 years ago

mmonitor v1.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

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

mmonitor

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

example

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
}

installation

npm i -g mmonitor

usage

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

development

installation

npm i
npm start

web client

cd web
npm i
npm start