statsd-logger

Simple statsd server for local development

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
statsd-logger
701.0.17 years ago10 years agoMinified + gzip package size for statsd-logger in KB

Readme

statsd-logger
!npm Versionnpm-badgenpm !Build Statusbuild-badgebuild-status !Dependency Statusdep-badgedep-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