package
Runtime monitoring for node.js applications
npm install monitor-minGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Headless (non-UI) version of the Node Monitor app
This package provides a foundation for monitoring and controlling remote node.js applications.
It introduces the concept of a Probe - a small software component capable of exposing and controlling state within a running node.js server.
Probes are written as Backbone models, and remain dormant in your process until instantiated from remote monitors.
From the monitoring process, a Monitor class is provided to connect with a remote probe.
This package is used for writing and embedding probes into your app server, and for writing custom clients for inspecting and controlling these probes. A companion package - Node Monitor - provides a user interface for building real time monitor dashboards.
Install using npm
$ npm install monitorStart the monitor service (standalone)
Normally you'll include this package into your own application server, but you can run as a standalone application as well.
$ npm start monitorObserve a probe from a remote process
In this example we're using a REPL console to connect with the built-in Process probe.
Open a REPL console from another terminal
$ nodeCreate a monitor for the Process probe
> var Monitor = require('monitor');
> var processMonitor = new Monitor({server:'localhost', probeClass: 'Process'});Connect with the probe, and view the properties
> processMonitor.connect();
> processMonitor.toJSON();The monitor is a Backbone model, so you can watch for changes
> var showFreeMem = function(){console.log(processMonitor.get('freemem'))};
> processMonitor.on('change', showFreeMem);May be freely distributed under the MIT license
See LICENSE file.
Copyright (c) 2010-2013 Loren West
Estimated unpacked size across 31 packages.
12.8 MB
Includes dependencies.
7 direct · 6 outdated
>=0.1.3 <0.2.0
4.4.0
>=0.4.32 <0.5.0
5.0.1
0.9.9
1.6.1
>=0.9.10 <0.10.0
4.8.4
>=1.4.3 <1.5.0
1.13.8
>=0.9.11 <0.10.0
4.8.4
>=0.1.4 <0.2.0
0.1.7