hot-shots-deux
v0.1.0
Published
Hot Shots wrapper with key-value Telegraf tags
Downloads
9
Readme
Hot Shots Deux
Wrapper for hot-shots statsd client that adds key-value telegraf tags handling.
Usage
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