https://github.com/lautis/hot-shots-deux
Hot Shots (Node.js StatsD client) wrapper with key-value Datadog/Telegraf tags
https://github.com/lautis/hot-shots-deux
Last synced: 2 months ago
JSON representation
Hot Shots (Node.js StatsD client) wrapper with key-value Datadog/Telegraf tags
- Host: GitHub
- URL: https://github.com/lautis/hot-shots-deux
- Owner: lautis
- License: isc
- Created: 2018-01-25T20:37:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T13:57:46.000Z (over 7 years ago)
- Last Synced: 2025-02-10T08:44:23.233Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Hot Shots Deux
Wrapper for [hot-shots](https://github.com/brightcove/hot-shots) statsd client that adds key-value telegraf tags handling.
[](https://travis-ci.org/lautis/hot-shots-deux)
## Usage
```js
var StatsD = require('hot-shots'),
var Deux = require('hot-shots-deux').default;
var client = new Deux(new StatsD());
client.increment("metric", 1, 1, { "key": "value" });
```If the tags contain a reserved character (`:`, `|`, `@`), that will be replaced with an underscore (`_`).
All functionality from hot-shots should be implemented in the wrapper class.
## Name
Why is this project named hot-shots-deux? Because:
* Hot Shots Part Deux is a much better movie than Hot Shots