http module wrapper, allows to keep web server usage statistics
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
The usage is very simple
var server = require'./webstat';serverstartServerresend'Hello world';;
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.
Itzik Paz firstname.lastname@example.org