New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

stats-client

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stats-client

Based on https://github.com/spreaker/nodejs-statsd-client but includes a way of interpreting dimensions that are not includes in the standard dot notation.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
11
175%
Maintainers
1
Weekly downloads
 
Created
Source

Node.js Statsd Client

Based on https://github.com/spreaker/nodejs-statsd-client but includes a way of interpreting dimensions that are not includes in the standard dot notation.

Metrics with dimensions get sent with this format:

some.metric?dimension1=abc1&other=test:1|c

How to install

npm install stats-client

How it works

var Client = require('stats-client')

// can supply dimensions that are send on all metrics
var client = new Client("localhost:8125", { instance: 'i-12312' }); 

// Count stat
client.count("num_logged_users", 1, { tenant: 'some-id' }); // dimension for individual metric
client.increment("num_logged_users", { tenant: 'some-id' });
client.decrement("num_logged_users", { tenant: 'some-id' });

// Timing stat
client.timing("request_ms", 250);

// Gauge stat
client.gauge("gauge_stats", 4);

FAQs

Package last updated on 21 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts