An open API service indexing awesome lists of open source software.

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

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.

[![Build Status](https://travis-ci.org/lautis/hot-shots-deux.svg?branch=master)](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