0.0.10 • Published 3 years ago

metrics-sender v0.0.10

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

#metrics-sender

How to install:

$ npm install metrics-sender

How to use (Typescript)

Import dependencies (Typescript):

import {Metrics} from "metrics-sender";

// Define initial values
const tags = {name: "app", host: "1.1.1.1", foo: "bar"};
const fields = {value1: 10000, value2: "some value"};

// Set connection details
const m = new Metrics("measurementName", tags, "localhost", 3333);

// Add more tag
m.addTag("added", "foo");

// Or remove some unnecessary tag
m.removeTag("host");

// And finally send UDP packet
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.

0.0.10

3 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago