Skip to content

jimf/statsd-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple script for logging statsd messages to the console.

Resources

License

Stars

Watchers

Forks

Packages

No packages published