Nodestatus - vmstat, iostat, etc... realtime in your browser
JavaScript Shell CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config-samples
demo
doc
lib/profiles
web
.bowerrc
.gitignore
README.md
bower.json
deploy
deploy.conf
id_deploy.pub
package.json
server.js

README.md

Nodestatus

NOTICE:

This project was made for the Node Knockout 2013 competition. This repo will not be updated any further.

We've moved to:

https://github.com/R42/nodestatus

Quick Intro

Run vmstat, iostat, stat remotely and chart it on your browser.

Description

Runs stat command - possibly remotely - and opens a browser with charts for the metrics (made with rickshaw/d3). Charts are updated realtime via socket.io.

Supports vm_stat and iostat on mac, vmstat on linux and other tools via simple json config file.

Install

Clone the repo:

git clone git@github.com:nko4/bazinga.git && cd ./bazinga/

Install npm dependencies:

npm install

Install bower dependencies:

node_modules/.bin/bower install

Usage

Watch a local vmstat collecting samples every 1 s

node server.js vmstat 1

Watch a local iostat collecting samples every 1 s

node server.js iostat 1

Watch a remove vmstat collecting samples every 3 s

node server.js --via "ssh deploy@bazinga.2013.nodeknockout.com" vmstat 3

Watch an unknown tool configured with a user specified config file, don't open a new browser

node server.js --no-open --json config-samples/mac-vmstat.json vmstat 1

Tools Used

Libraries:

  • Restify
  • Socket.IO
  • Angular.js
  • Rickshaw / D3
  • Lodash
  • Handlebars
  • optimist

Angular.js, lodash and handlebars were only used to speed up development, probably not used at all for a final product.

CSS Toolkit: Ink (Includes Font Awesome)

License

Code is licensed under the MIT License