Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

monitor

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monitor

Runtime monitoring for node.js applications

  • 0.6.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NodeJS Monitoring

Remote monitoring and control for your node.js app

Build Status

Introduction

This is the core library for remote monitoring and control of your NodeJS app.

Think of it as a supercharged JMX for NodeJS:

  • Easy to embed - Add to your app with 1 line of code
  • Auto discovery - Finds all instances of your app on a server
  • Remote REPL - Remote login to your running apps
  • Process information - CPU load, memory usage, uptime, etc.
  • Backbone.js integration - Remotely monitor Backbone.js models, with active updates
  • Configuration control - Inspect and tune your app configurations while running
  • Powerful - Enterprise grade for multi-node deployments
  • Lightweight - Trim enough to run in a Raspberry Pi or BeagleBoard
  • Hackable - For specialized monitoring, and a plugin directory

Quick Start

Install using npm

$ npm install monitor

Run standalone

Play with the built-in server before embedding into your app:

$ npm start monitor

Remotely Connect

The best way to monitor and control the app is with the Monitor Dashboard, but for this example we'll go headless, driving it from another node.js process.

With the above server running in another window...

Create a test.js

// Get a monitor to the Process probe
var Monitor = require('monitor');
var processMonitor = new Monitor({server:'localhost', probeClass: 'Process'});
processMonitor.connect(function(error) {

  // Show the contents of the monitor
  console.log(processMonitor);

  // Remote monitors are Backbone.js models,
  // so you can observe them as they change
  processMonitor.on('change', function() {
    console.log(processMonitor.get('freemem'));
  });
});

Try it out

node test.js

You should see all data from the process montitor, followed by an ongoing report of available memory.

Embedding Into Your App

Now add to your app

Place the following line into your app server bootstrap:

require('monitor').start();

Now start your app server and run the same test.js, design your own monitoring client, or build a visual control center with the Monitor Dashboard app.

More Information

License

May be freely distributed under the MIT license

See LICENSE file.

Copyright (c) 2010-2013 Loren West

FAQs

Package last updated on 07 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc