webstat

0.1.2 • Public • Published

webstat

node.js web server usage statistics

Collect usage statistics:

  • Total requests since the server started
  • Current handled requests
  • Request per second for the last minute / 5 minutes / 15 minutes / hour / day

usage

The usage is very simple

var server = require('./webstat');

server.startServer(function(req, res){
   res.end('Hello world');
});

command line utility

The module comes with a command utility which shows the server stats. Usage: webstatctl status

This utility is a simple http client which calls the web server with the OPTIONS http method.

The OPTIONS http method call is only allowed from the local machine.

author

Itzik Paz spideron@gmail.com

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i webstat

      Weekly Downloads

      3

      Version

      0.1.2

      License

      none

      Last publish

      Collaborators

      • spideron