hot-shots-posix
A StatsD client forked from https://github.com/brightcove/hot-shots with additional support for POSIX-compliant systems.
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
- Node.js >= 6.0.0
Development
To bootstrap your development environment:
- Clone hot-shots-posix
- Run
npm install
Tests
npm run test
- runs all testsnpm run test-unit
- runs unit testsnpm run test-integration
- runs integration testsnpm run lint
- runs linter
License
hot-shots-posix is licensed under the MIT license.