项目作者: msindwan

项目描述 :
A fork of https://github.com/brightcove/hot-shots with additional support for POSIX-compliant systems
高级语言: JavaScript
项目地址: git://github.com/msindwan/hot-shots-posix.git
创建时间: 2019-03-19T15:51:06Z
项目社区:https://github.com/msindwan/hot-shots-posix

开源协议:MIT License

下载


hot-shots-posix

NOTE: This package is deprecated. hot-shots should support UDS going forward.

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

  1. const StatsD = require('hot-shots-posix');
  2. // Create the client
  3. const client = new StatsD({
  4. path: '/path/to/uds',
  5. protocol: 'unix_dgram',
  6. errorHandler: (err) => {
  7. console.error(err);
  8. }
  9. });
  10. // Start emitting metrics.
  11. client.increment('my.stat');
  12. client.decrement('my.stat');

Requirements

  • Node.js >= 6.0.0

Development

To bootstrap your development environment:

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

Tests

  • npm run test - runs all tests
  • npm run test-unit - runs unit tests
  • npm run test-integration - runs integration tests
  • npm run lint - runs linter

License

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