statsd-logger

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i statsd-logger

Weekly Downloads

5

Version

1.0.1

License

MIT

Last publish

Collaborators

  • jimf