statsd-logger
v1.0.1
Published
Simple statsd server for local development
Downloads
61
Readme
statsd-logger
statsd-logger is a simple server for listening for StatsD messages over UDP and logging them to the console. This server is intended for local development in place of a true StatsD server.
Inspired by Lee Hambley's Dirt simple StatsD server for local development, but written in Node.
Installation
Install using npm:
$ npm install -g statsd-logger
Usage
Run statsd-logger to begin the logging server:
$ statsd-logger
Test that the server is working by sending a UDP packet (UNIX environment assumed):
$ echo "gorets:1|c" | nc -u -w0 127.0.0.1 8125
To override the default port, set the PORT
environment variable:
$ PORT=8126 statsd-logger
License
MIT