prototype for a metrics server in Node.js