#metrics-sender
How to install:
$ npm install metrics-sender
How to use (Typescript)
Import dependencies (Typescript):
import {Metrics} from "metrics-sender";
const tags = {name: "app", host: "1.1.1.1", foo: "bar"};
const fields = {value1: 10000, value2: "some value"};
const m = new Metrics("measurementName", tags, "localhost", 3333);
m.addTag("added", "foo");
m.removeTag("host");
m.send(fields);
How to contribute:
Create pull request to https://github.com/hanaboso/metrics-sender
repository.
Please note that this lib is written in typescript.