A small lib using node-statsd-client to count incoming connections as well as globalAgent connections and queue length by host
Want to see pretty graphs? Log in now!
npm install statsd-connection-counter
|19||downloads in the last day|
|69||downloads in the last week|
|176||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated 2 months ago|
|Keywords||statsd, graphite, connections, metrics|
# A quick and dirty module to count connections for servers and agents
If you are using the http Agent, and you throw to many connections to the same host, you are going to get slow.
This tells you how many sockets you have open, as well as the length of your request queue.
It also takes an http server and counts the number of incoming connections
var SDC = require("statsd-client") var sdc = new SDC() var myServer = http.createServer() //or an express server object var connCounter = require("statsd-connection-count") connCounter(sdc, myServer, 1000)