Home Reference Source

hot-shots-posix

A StatsD client forked from https://github.com/brightcove/hot-shots with additional support for POSIX-compliant systems.

npm version

API Documentation and usage

Quick Start

const StatsD = require('hot-shots-posix');

// Create the client
const client = new StatsD({
  path: '/path/to/uds',
  protocol: 'unix_dgram',
  errorHandler: (err) => {
    console.error(err);
  }
});

// Start emitting metrics.
client.incremment('my.stat');
client.decrement('my.stat');

Requirements

Development

To bootstrap your development environment:

  1. Clone hot-shots-posix
  2. Run npm install

Tests

License

hot-shots-posix is licensed under the MIT license.