1.0.1 • Published 7 years ago

statsd-logger v1.0.1

Weekly downloads
63
License
MIT
Repository
github
Last release
7 years ago

statsd-logger

npm Version Build Status Dependency Status

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

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

10 years ago