mmonitor
v1.5.0
Published
[![travis](https://img.shields.io/travis/christian-fei/mmonitor.svg?style=flat-square)](https://travis-ci.org/christian-fei/mmonitor) [![npm-version](https://img.shields.io/npm/v/mmonitor.svg?style=flat-square&colorB=007EC6)](https://www.npmjs.com/package
Downloads
7
Readme
mmonitor
mmonitor is a simple tool to monitor mongo queries and aggregations.
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